Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

chore: update with upstream changes for 2.x #1

Merged
merged 112 commits into from Jul 3, 2019
Merged

Conversation

deepak1556
Copy link

@deepak1556 deepak1556 commented Jun 7, 2019

This allows us to pull in fsevents@1.2.9 safely that provides node 12 compatibility fsevents/fsevents#274. Might help in transitioning to official chokidar@3 as a follow up and drop this fork.

Required for https://github.com/microsoft/vscode/tree/electron-6.0.x

es128 and others added 30 commits May 8, 2017 14:45
* fix for handling braces in path

* fix entry parts checking

* fix braces test

* fix braces test

* fix paths in test for windows
Includes a test case that reproduces the issue without the fix.
Attempt to get tests passing with updated deps
Update Travis & AppVeyor to allow node 0.10 failures
Fixes paulmillr#668

Chokidar@2 includes anymatch@2 which has a (potentially) breaking change
as described in the changelog: https://github.com/micromatch/anymatch#change-log

When the `cwd` is set Chokidar will join the ignore pattern to the cwd,
and if this isn't absolute, it causes `anymatch` to fail:

```js
// where cwd = c:\Users\remy\
anymatch('C:\\Users\\remy\\**\\node_modules\\**',
'C:\\Users\\remy\\node_modules\\project'); // === false
```

https://runkit.com/embed/rn05fobk294p

So this change adds the upath module (used by Chokidar during testing
and about 35K footprint) to normalize the path to bash-like slashes
which corrects the issue.
Fix windows ignore when using anymatch@2 & cwd option
Fix uncaught exception "Cannot read property 'lastChange' of undefined".
Changed to current url
Accept upath minor and security patches
Unlink and re-add fails when multiple paths are passed
This also fixes an issue that using fd = 0 is not closed in case
Windows is used and a `EPERM` error is triggered.
paulmillr and others added 20 commits February 5, 2019 11:38
* Add dtslint and @types/node

Adding dtslint to test (lint) the type definitions and @types/node since they're a depedency of these types

* Assert the types are valid in CI

* Create the tsconfig for validating types

* Port (copy/paste) existing types from DefinitelyTyped

* Add the types key and include in the package
* A better workaround for atomic writes.

* Adding comments.
…obs with subfolders (paulmillr#818)

* fix paulmillr#806: Chokidar doesn't let process exit when watching globs with subfolders

* fix paulmillr#806: Chokidar doesn't let process exit when watching globs with subfolders
@bpasero bpasero self-assigned this Jun 17, 2019
index.js Outdated
@@ -3,11 +3,14 @@ var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var sysPath = require('path');
var asyncEach = require('async-each');
var anymatch = require('vscode-anymatch');
var anymatch = require('anymatch');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepak1556 please take note that vscode-anymatch was added specifically to fix microsoft/vscode#57263. We need to also bring anymatch to latest it seems and see if the change is still needed that I did.

package.json Outdated
],
"dependencies": {
"anymatch": "^2.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepak1556 vscode-anymatch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet