Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hexojs/hexo-fs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6701017526aea1506cc5aaaf542d60e452d9c993
Choose a base ref
...
head repository: hexojs/hexo-fs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 780a5a9ab504628bd4be7a6ff7d099a70d4499f2
Choose a head ref

Commits on Jun 1, 2017

  1. Update fs.js

    NoahDragon authored Jun 1, 2017
    Copy the full SHA
    4b7cfa1 View commit details
  2. Update .travis.yml

    NoahDragon authored Jun 1, 2017
    Copy the full SHA
    8344a27 View commit details
  3. Update package.json

    NoahDragon authored Jun 1, 2017
    Copy the full SHA
    6f40466 View commit details

Commits on Jul 8, 2017

  1. Update appveyor.yml

    JLHwung authored Jul 8, 2017
    Copy the full SHA
    697c379 View commit details

Commits on Jul 10, 2017

  1. Fix/appveyor error (#5)

    * chore(package-lock): add package lock
    
    * test(index): add done on after hook
    
    * fix(test): rmdir on finish/open event
    
    * fix(test): does not remove dir on first ensure test
    JLHwung authored and NoahDragon committed Jul 10, 2017
    Copy the full SHA
    9af3450 View commit details
  2. Update package.json

    NoahDragon authored Jul 10, 2017
    Copy the full SHA
    dacbaf4 View commit details

Commits on Sep 5, 2017

  1. Copy the full SHA
    db3ce91 View commit details
  2. typo (#6)

    segayuu authored and NoahDragon committed Sep 5, 2017
    Copy the full SHA
    648c852 View commit details
  3. Update .gitignore

    NoahDragon authored Sep 5, 2017
    Copy the full SHA
    ca25233 View commit details
  4. Copy the full SHA
    215355d View commit details
  5. Update package.json

    NoahDragon authored Sep 5, 2017
    Copy the full SHA
    1b190fd View commit details

Commits on Sep 19, 2017

  1. Copy the full SHA
    9c365dd View commit details
  2. Copy the full SHA
    1896228 View commit details

Commits on Sep 20, 2017

  1. Merge pull request #9 from hexojs/copyfile

    feat(copyFile): use native fs.copyFile when available, closes #8
    JLHwung authored Sep 20, 2017
    Copy the full SHA
    6f5800f View commit details

Commits on Mar 28, 2018

  1. Copy the full SHA
    03de8a9 View commit details
  2. Copy the full SHA
    612a042 View commit details

Commits on Apr 5, 2018

  1. Merge pull request #13 from segayuu/npm-version-check-from-david

    Add David BADGE from readme.md
    segayuu authored Apr 5, 2018
    Copy the full SHA
    5b8c00d View commit details

Commits on Apr 6, 2018

  1. Support node version 6 (#11)

    * remove jscs
    
    * upgrade eslint and eslint-config-hexo
    
    * Fix Test: the part not waiting for callback.
    
    * upgrade mocha
    
    * Added explicit setting of support version of nodejs
    
    * rename .eslintrc to .eslintrc.json
    
    * upgrade chikidar
    
    * Add David BADGE from readme.md
    
    * Revert: upgrade mocha
    
    * Revert "upgrade eslint and eslint-config-hexo"
    
    This reverts commit bb8bca1.
    
    * Revert "rename .eslintrc to .eslintrc.json"
    
    This reverts commit f1d409d.
    
    * Revert "upgrade chikidar"
    
    This reverts commit cbe4156.
    
    * Revert "Add David BADGE from readme.md"
    
    This reverts commit 0dbe7f1.
    
    * Revert "remove jscs"
    
    This reverts commit 547e214.
    
    * Revert "Fix Test: the part not waiting for callback."
    
    This reverts commit a938f4c.
    segayuu authored and NoahDragon committed Apr 6, 2018
    Copy the full SHA
    07e16d0 View commit details
  2. Remove jscs and upgrade eslint-config-hexo (#14)

    * remove jscs and jscs-preset-hexo
    
    * upgrade eslint and eslint-cinfig-hexo
    
    * rename .eslintrc to .eslintrc.json
    segayuu authored and NoahDragon committed Apr 6, 2018
    Copy the full SHA
    cd15f93 View commit details

Commits on Apr 7, 2018

  1. Merge branch 'master' of https://github.com/segayuu/hexo-fs into fix-…

    …test-not-waiting-file-stream
    segayuu committed Apr 7, 2018
    Copy the full SHA
    1e6ee83 View commit details
  2. eslint fix

    segayuu committed Apr 7, 2018
    Copy the full SHA
    d0f4d77 View commit details

Commits on Apr 10, 2018

  1. fix review

    segayuu committed Apr 10, 2018
    Copy the full SHA
    ee160bf View commit details
  2. Merge pull request #12 from segayuu/fix-test-not-waiting-file-stream

    Fix Test: the part not waiting for callback.
    JLHwung authored Apr 10, 2018
    Copy the full SHA
    008369b View commit details
  3. 0.2.3

    JLHwung committed Apr 10, 2018
    Copy the full SHA
    744e439 View commit details

Commits on Apr 13, 2018

  1. upgrade mocha (#15)

    segayuu authored and NoahDragon committed Apr 13, 2018
    Copy the full SHA
    f8a7bea View commit details

Commits on Apr 16, 2018

  1. small callback scope

    segayuu committed Apr 16, 2018
    Copy the full SHA
    fb9912c View commit details
  2. Copy the full SHA
    53c9b1f View commit details
  3. Copy the full SHA
    bebf47e View commit details

Commits on Jun 19, 2018

  1. Copy the full SHA
    0e79d48 View commit details

Commits on Jul 13, 2018

  1. upgrade chai

    segayuu committed Jul 13, 2018
    Copy the full SHA
    51947b9 View commit details
  2. Merge pull request #18 from segayuu/upgrade-chai

    upgrade chai
    JLHwung authored Jul 13, 2018
    Copy the full SHA
    9d177be View commit details

Commits on Jul 17, 2018

  1. install iferr

    segayuu committed Jul 17, 2018
    Copy the full SHA
    4056891 View commit details
  2. Copy the full SHA
    a537172 View commit details
  3. fix stream error handling

    segayuu committed Jul 17, 2018
    Copy the full SHA
    6f1575a View commit details
  4. Copy the full SHA
    97fd14f View commit details

Commits on Jul 26, 2018

  1. Merge pull request #17 from tomap/master

    Update to latest to avoid security audit alerts
    JLHwung authored Jul 26, 2018
    Copy the full SHA
    57969de View commit details

Commits on Jul 27, 2018

  1. Copy the full SHA
    42c4e5f View commit details

Commits on Jul 30, 2018

  1. Merge pull request #16 from segayuu/small-callback-scope

    Decrease scope of callback
    segayuu authored Jul 30, 2018
    Copy the full SHA
    bf4d648 View commit details
  2. merge master

    segayuu committed Jul 30, 2018
    Copy the full SHA
    59e5276 View commit details
  3. Merge branch 'tester-use-iferr' of https://github.com/segayuu/hexo-fs

    …into tester-use-iferr
    segayuu committed Jul 30, 2018
    Copy the full SHA
    28c5c7f View commit details
  4. fix test

    segayuu committed Jul 30, 2018
    Copy the full SHA
    fbeeeed View commit details

Commits on Jul 31, 2018

  1. Merge pull request #19 from segayuu/tester-use-iferr

    callback propagation with iferr module
    tcrowe authored Jul 31, 2018
    Copy the full SHA
    3d0f4f7 View commit details

Commits on Oct 3, 2018

  1. Auto es2016nify from lebab

    segayuu committed Oct 3, 2018
    Copy the full SHA
    5df45c4 View commit details
  2. Refactering es2016nify

    segayuu committed Oct 3, 2018
    Copy the full SHA
    4fd9de7 View commit details

Commits on Oct 8, 2018

  1. Copy the full SHA
    234b049 View commit details
  2. Merge pull request #21 from segayuu/fix-test-stream-event

    fix test: Wait for resources to be properly released
    JLHwung authored Oct 8, 2018
    Copy the full SHA
    62c3dd7 View commit details
  3. Merge pull request #20 from segayuu/refactoring-es2016nify

    Refactoring es2016nify
    JLHwung authored Oct 8, 2018
    Copy the full SHA
    2c5e9d4 View commit details
  4. 1.0.0

    JLHwung committed Oct 8, 2018
    Copy the full SHA
    0383500 View commit details
  5. Copy the full SHA
    33fceb5 View commit details
  6. docs(readme): update example

    JLHwung committed Oct 8, 2018
    Copy the full SHA
    9b797c9 View commit details
Showing with 942 additions and 1,206 deletions.
  1. +4 −0 .editorconfig
  2. 0 .eslintrc → .eslintrc.json
  3. +2 −1 .gitignore
  4. +0 −4 .jscsrc
  5. +0 −8 .npmignore
  6. +4 −5 .travis.yml
  7. +8 −3 README.md
  8. +3 −3 appveyor.yml
  9. +183 −238 lib/fs.js
  10. +24 −16 package.json
  11. 0 test/{.eslintrc → .eslintrc.json}
  12. +714 −928 test/index.js
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*.js]
indent_size = 2
File renamed without changes.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -3,4 +3,5 @@ node_modules/
tmp/
*.log
.idea/
coverage/
.nyc_output/
package-lock.json
4 changes: 0 additions & 4 deletions .jscsrc

This file was deleted.

8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -8,15 +8,14 @@ cache:
- node_modules

node_js:
- "0.12"
- "4"
- "6"
- "8"
- "10"
- "node"

script:
- npm run eslint
- npm run jscs
- npm run test-cov

after_script:
- npm install coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- nyc report --reporter=text-lcov | coveralls
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# hexo-fs

[![Build Status](https://travis-ci.org/hexojs/hexo-fs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-fs) [![NPM version](https://badge.fury.io/js/hexo-fs.svg)](http://badge.fury.io/js/hexo-fs) [![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-fs.svg)](https://coveralls.io/r/hexojs/hexo-fs?branch=master) [![Build status](https://ci.appveyor.com/api/projects/status/wift3c57kei3ylq4/branch/master?svg=true)](https://ci.appveyor.com/project/tommy351/hexo-fs/branch/master)
[![Build Status](https://travis-ci.org/hexojs/hexo-fs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-fs)
[![NPM version](https://badge.fury.io/js/hexo-fs.svg)](https://www.npmjs.com/package/hexo-fs)
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-fs.svg)](https://coveralls.io/r/hexojs/hexo-fs?branch=master)
[![Build status](https://ci.appveyor.com/api/projects/status/github/hexojs/hexo-fs?svg=true)](https://ci.appveyor.com/project/tommy351/hexo-fs/branch/master)
[![dependencies Status](https://david-dm.org/hexojs/hexo-fs/status.svg)](https://david-dm.org/hexojs/hexo-fs)
[![devDependencies Status](https://david-dm.org/hexojs/hexo-fs/dev-status.svg)](https://david-dm.org/hexojs/hexo-fs?type=dev)

File system module for [Hexo].

@@ -19,7 +24,7 @@ $ npm install hexo-fs --save
## Usage

``` js
var fs = require('hexo-fs');
const fs = require('hexo-fs');
```

> Some methods in the original fs module are not listed below, but they're available in hexo-fs.
@@ -157,5 +162,5 @@ Synchronous version of `fs.ensureWriteStream`.
MIT

[graceful-fs]: https://github.com/isaacs/node-graceful-fs
[Hexo]: http://hexo.io/
[Hexo]: https://hexo.io/
[chokidar]: https://github.com/paulmillr/chokidar
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@ init:
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "12"

matrix:
fast_finish: true
421 changes: 183 additions & 238 deletions lib/fs.js

Large diffs are not rendered by default.

40 changes: 24 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
{
"name": "hexo-fs",
"version": "0.1.6",
"version": "2.0.0",
"description": "File system module for Hexo.",
"main": "lib/fs",
"main": "lib/fs.js",
"scripts": {
"eslint": "eslint .",
"jscs": "jscs .",
"test": "mocha test/index.js",
"test-cov": "istanbul cover _mocha --print both test/index.js"
"test-cov": "nyc npm run test"
},
"directories": {
"lib": "./lib"
},
"files": [
"lib/fs.js"
],
"repository": "hexojs/hexo-fs",
"homepage": "http://hexo.io/",
"homepage": "https://hexo.io/",
"keywords": [
"file",
"file system",
"fs",
"hexo"
],
"author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)",
"maintainers": [
"Abner Chou <hi@abnerchou.me> (http://abnerchou.me)"
],
"license": "MIT",
"dependencies": {
"bluebird": "^3.4.0",
"chokidar": "^1.5.2",
"escape-string-regexp": "^1.0.5",
"graceful-fs": "^4.1.4"
"bluebird": "^3.5.1",
"chokidar": "^3.0.0",
"escape-string-regexp": "^2.0.0",
"graceful-fs": "^4.1.11"
},
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^2.12.0",
"eslint-config-hexo": "^1.0.3",
"istanbul": "^0.4.3",
"jscs": "^3.0.4",
"jscs-preset-hexo": "^1.0.1",
"mocha": "^2.5.3"
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^6.0.1",
"eslint-config-hexo": "^3.0.0",
"iferr": "^1.0.2",
"mocha": "^6.0.2",
"nyc": "^14.1.1"
},
"engines": {
"node": ">=8"
}
}
File renamed without changes.
1,642 changes: 714 additions & 928 deletions test/index.js

Large diffs are not rendered by default.