Commit Graph

125 Commits

Author SHA1 Message Date
Joe Previte d3c1906390
fix: limit ts-node upgrades 2021-03-24 17:01:28 -07:00
Joe Previte 080d59b269
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-4.19.0 2021-03-23 15:10:03 -07:00
dependabot[bot] 3ab625f83b
chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.18.0 to 4.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.19.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 16:37:27 +00:00
dependabot[bot] 2c01464800
chore(deps-dev): bump @typescript-eslint/parser from 4.18.0 to 4.19.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.18.0 to 4.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.19.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 16:37:07 +00:00
dependabot[bot] 24dc2080f9
chore(deps): bump semver from 7.3.4 to 7.3.5 (#2946)
Bumps [semver](https://github.com/npm/node-semver) from 7.3.4 to 7.3.5.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.4...v7.3.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 11:32:31 -05:00
dependabot[bot] 32d882a507
chore(deps-dev): bump @types/express from 4.17.8 to 4.17.11 (#2916)
* chore(deps-dev): bump @types/express from 4.17.8 to 4.17.11

Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.8 to 4.17.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(dev-deps):bump @types/serve-static to 1.13.9

Cherry-pick required to fix upgrade for @types/express.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash@coder.com>
2021-03-18 16:31:59 -05:00
dependabot[bot] 923ef2f3c4
chore(deps-dev): bump eslint-config-prettier from 6.12.0 to 8.1.0 (#2918)
* chore(deps-dev): bump eslint-config-prettier from 6.12.0 to 8.1.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.12.0 to 8.1.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.12.0...v8.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

* fix(eslintrc): remove prettier/@typescript extend

Removed by upstream in v8.0.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash@coder.com>
2021-03-18 16:31:23 -05:00
dependabot[bot] a41b47c1de
chore(deps-dev): bump ts-node from 9.0.0 to 9.1.1 (#2919)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.0.0 to 9.1.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.0.0...v9.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash@coder.com>
2021-03-18 16:30:41 -05:00
dependabot[bot] a8e2ede4f5
chore(deps): bump js-yaml from 3.14.0 to 4.0.0 (#2920)
* chore(deps): bump js-yaml from 3.14.0 to 4.0.0

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.0 to 4.0.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* fix(src/node): replace yaml.safeLoad with load

Also update @types/yaml to ^4.0.0.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash@coder.com>
2021-03-18 16:30:10 -05:00
dependabot[bot] 4c6cf8414c
chore(deps-dev): bump @types/parcel-bundler from 1.12.1 to 1.12.3 (#2926)
Bumps [@types/parcel-bundler](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/parcel-bundler) from 1.12.1 to 1.12.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/parcel-bundler)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 16:29:14 -05:00
repo-ranger[bot] 89d7606de1
Merge pull request #2909 from cdr/dependabot/npm_and_yarn/istanbul-badges-readme-1.2.1
chore(deps-dev): bump istanbul-badges-readme from 1.2.0 to 1.2.1
2021-03-17 19:27:31 +00:00
dependabot[bot] 3dfbd8bae0
chore(deps): bump proxy-agent from 4.0.0 to 4.0.1 (#2908)
Bumps [proxy-agent](https://github.com/TooTallNate/node-proxy-agent) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/TooTallNate/node-proxy-agent/releases)
- [Changelog](https://github.com/TooTallNate/node-proxy-agent/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-proxy-agent/compare/4.0.0...4.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-17 12:40:57 -05:00
repo-ranger[bot] 1d5c765a24
Merge pull request #2907 from cdr/dependabot/npm_and_yarn/eslint-plugin-prettier-3.3.1
chore(deps-dev): bump eslint-plugin-prettier from 3.1.4 to 3.3.1
2021-03-17 17:26:19 +00:00
dependabot[bot] b01f4061b7
chore(deps-dev): bump stylelint-config-recommended from 3.0.0 to 4.0.0
Bumps [stylelint-config-recommended](https://github.com/stylelint/stylelint-config-recommended) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/stylelint/stylelint-config-recommended/releases)
- [Changelog](https://github.com/stylelint/stylelint-config-recommended/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint-config-recommended/compare/3.0.0...4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 11:05:31 +00:00
dependabot[bot] d0b71a139f
chore(deps-dev): bump istanbul-badges-readme from 1.2.0 to 1.2.1
Bumps [istanbul-badges-readme](https://github.com/olavoparno/istanbul-badges-readme) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/olavoparno/istanbul-badges-readme/releases)
- [Changelog](https://github.com/olavoparno/istanbul-badges-readme/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/olavoparno/istanbul-badges-readme/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 11:05:18 +00:00
dependabot[bot] ec7cdcd656
chore(deps-dev): bump eslint-plugin-prettier from 3.1.4 to 3.3.1
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.4 to 3.3.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.4...v3.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 11:04:51 +00:00
dependabot[bot] 31dd0a4d6e
chore(deps-dev): bump @typescript-eslint/parser from 4.7.0 to 4.18.0 (#2896)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.7.0 to 4.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.18.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 14:34:52 -05:00
dependabot[bot] 7259a24b3c
chore(deps-dev): bump @types/tar-stream from 2.1.0 to 2.2.0 (#2895)
* chore(deps-dev): bump @types/tar-stream from 2.1.0 to 2.2.0

Bumps [@types/tar-stream](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tar-stream) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tar-stream)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): update tar-fs, add tar-stream, and remove tar

- tar doesn't seem to be used anywhere.
- tar-stream was an implicit dependency because we had tar-fs but it
  seems better to be explicit about it since we use it directly
- Update tar-fs as well since this makes it use same version instead of
  needing two separate copies of different versions

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asher <ash@coder.com>
2021-03-16 14:34:24 -05:00
dependabot[bot] b0c773bcda
chore(deps-dev): bump parcel-bundler from 1.12.4 to 1.12.5 (#2894)
* chore(deps-dev): bump parcel-bundler from 1.12.4 to 1.12.5

Bumps [parcel-bundler](https://github.com/parcel-bundler/parcel) from 1.12.4 to 1.12.5.
- [Release notes](https://github.com/parcel-bundler/parcel/releases)
- [Changelog](https://github.com/parcel-bundler/parcel/blob/v2/CHANGELOG.md)
- [Commits](https://github.com/parcel-bundler/parcel/compare/parcel-bundler@1.12.4...parcel-bundler@1.12.5)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): remove node-forge from resolutions

This is no longer needed since the parcel-bundler update also updated
the node-forge version.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asher <ash@coder.com>
2021-03-16 13:40:57 -05:00
Asher 95a0740ca1
Merge pull request #2889 from code-asher/remove-fs-extra 2021-03-16 12:54:42 -05:00
Asher 964ebe8d0a
Replace fs-extra with fs.promises
Remove the Mac directory copy instead of refactoring it since we've had
this for a long time now and I think it's safe to assume that users
running code-server on Mac don't have the old directory anymore.
2021-03-16 12:51:08 -05:00
dependabot[bot] 556e562f5c
chore(deps): bump semver from 7.3.2 to 7.3.4 (#2897)
Bumps [semver](https://github.com/npm/node-semver) from 7.3.2 to 7.3.4.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.2...v7.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 12:29:37 -05:00
Joe Previte acb4663873
Merge pull request #2891 from cdr/jsjoeio/replace-shfmt
feat: add prettier-plugin-sh
2021-03-15 16:32:25 -07:00
Joe Previte 0ba53b6adf
feat: add prettier-plugin-sh 2021-03-15 15:14:26 -07:00
dependabot[bot] 3f3a619660
chore(deps-dev): bump @types/ws from 7.2.7 to 7.4.0 (#2871)
* chore(deps-dev): bump @types/ws from 7.2.7 to 7.4.0

Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 7.2.7 to 7.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump ws from 7.3.1 to 7.4.4

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asher <ash@coder.com>
2021-03-15 17:08:28 -05:00
dependabot[bot] d27126530f
chore(deps-dev): bump @types/http-proxy from 1.17.4 to 1.17.5 (#2872)
Bumps [@types/http-proxy](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/http-proxy) from 1.17.4 to 1.17.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/http-proxy)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 15:19:14 -05:00
dependabot[bot] bc48b54a71
chore(deps-dev): bump doctoc from 1.4.0 to 2.0.0 (#2886)
Bumps [doctoc](https://github.com/thlorenz/doctoc) from 1.4.0 to 2.0.0.
- [Release notes](https://github.com/thlorenz/doctoc/releases)
- [Commits](https://github.com/thlorenz/doctoc/compare/v1.4.0...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 15:11:48 -05:00
dependabot[bot] 14ef340369
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#2887)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.7.0 to 4.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.18.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 15:06:20 -05:00
dependabot[bot] 05068753f5
chore(deps-dev): bump typescript from 4.1.3 to 4.2.3 (#2884)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.3 to 4.2.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.3...v4.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 12:15:33 -05:00
dependabot[bot] a6b84bb23d
chore(deps): bump rotating-file-stream from 2.1.3 to 2.1.5 (#2880)
Bumps [rotating-file-stream](https://github.com/iccicci/rotating-file-stream) from 2.1.3 to 2.1.5.
- [Release notes](https://github.com/iccicci/rotating-file-stream/releases)
- [Changelog](https://github.com/iccicci/rotating-file-stream/blob/master/CHANGELOG.md)
- [Commits](https://github.com/iccicci/rotating-file-stream/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 11:58:51 -05:00
dependabot[bot] 88af52fe18
chore(deps): bump env-paths from 2.2.0 to 2.2.1 (#2883)
Bumps [env-paths](https://github.com/sindresorhus/env-paths) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/sindresorhus/env-paths/releases)
- [Commits](https://github.com/sindresorhus/env-paths/compare/v2.2.0...v2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 10:54:12 -05:00
dependabot[bot] 37a56be3f5
chore(deps-dev): bump eslint from 7.11.0 to 7.22.0 (#2876)
Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.11.0...v7.22.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 10:41:33 -05:00
dependabot[bot] c90d1983f6
chore(deps-dev): bump prettier from 2.1.2 to 2.2.1 (#2873)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-12 16:21:55 -06:00
Akash Satheesan 702485139a
chore: update vulnerable dependencies (#2861)
Cherry-pick dependencies with security issues to update.

Signed-off-by: Akash Satheesan <akash@coder.com>
2021-03-12 01:46:40 +05:30
Justin Poehnelt 97c1399401
feat: use compression in express server (#2680) 2021-02-12 14:27:33 -06:00
Asher 8344e2062a
Merge pull request #2622 from cdr/plugin-additions 2021-02-10 16:45:00 -06:00
Asher 2b1b3e6dc0
Add eslint import alias resolver
Somehow I managed not to commit this earlier.
2021-02-09 16:20:28 -06:00
Joe Previte 719481e84e
refactor: add getPackageJson fn in constants 2021-02-08 16:21:30 -07:00
Anmol Sethi d7f06975a6
test: Switch from leaked-handles to wtfnode (#2604)
See my comments at
https://github.com/cdr/code-server/pull/2563#issuecomment-763394741
2021-02-01 11:06:49 -05:00
Joe Previte 3044224729
feat: add support for code coverage shield 2021-01-25 16:21:07 -07:00
Joe Previte 05beccf671
refactor: move jest around and add code coverage 2021-01-22 14:18:45 -07:00
Joe Previte 883dd13850
refactor: move jest and add package.json to /test 2021-01-21 14:06:49 -07:00
Joe Previte 75717749b2
refactor: upgrade TS to 4.1.3 2021-01-21 10:11:09 -07:00
Joe Previte 0a07d67c8d
fix: prevent mocha/jest types conlict
Modify the tsconfig.json in lib/vscode/src/build.

This adds the flag skipLibCheck: true to tell TypeScript
to not type-check the declaration files at build time.

We need to add this because otherwise it checks the declaration
files and reports an error of duplicate type definitions
because we use Jest for our tests and they use Mocha and they
both use the global namespace "test" in their .d.ts files.
2021-01-21 10:11:09 -07:00
Joe Previte cef7d42652
feat: setup jest 2021-01-21 10:10:32 -07:00
Anmol Sethi ea1949e440
test: Add testutil.HttpServer
The goal is to remove supertest as it does not support typescript well
and there's really no good reason for the dependency. Also no websocket
testing support.
2021-01-20 02:06:43 -05:00
Anmol Sethi ae902b9dd1
proxy_agent: Use proxy-from-env for robustness
Now we support pretty much every variable under the sun along with
$NO_PROXY all correctly and with minimal code on our end.
2020-12-18 11:10:07 -05:00
Anmol Sethi 691d44d4a8
Use proxy-agent to support $HTTP_PROXY
Closes #124

This works by monkey patching the http and https modules's default agent
at runtime to the one given by the proxy-agent package.
2020-12-04 02:34:43 -05:00
Anmol Sethi a37572d92d
ci: Disable no-unused-vars for function args
See previous commit for failure introduced.
2020-11-13 18:44:28 -05:00
Anmol Sethi 197a09f0c1
plugin: Test endpoints via supertest
Unfortunately we can't use node-mocks-http to test a express.Router
that has async routes. See https://github.com/howardabrams/node-mocks-http/issues/225

router will just return undefined if the executing handler is async and
so the test will have no way to wait for it to complete. Thus, we have
to use supertest which starts an actual HTTP server in the background
and uses a HTTP client to send requests.
2020-11-06 10:13:01 -05:00