Commit Graph

238 Commits

Author SHA1 Message Date
Joe Previte 537fbd040a
feat: add coverage script using codecov 2021-04-22 15:27:54 -07:00
Joe Previte a777bf05c7
feat: add clover to get test coverage in xml
Codecov requires .xml format.

We can get this from Jest by adding "clover"
to our coverageReporters.
2021-04-22 15:03:15 -07:00
Jonathan Yu 4ae9e43362
security: upgrade parcel-bundler from 1.12.4 to 1.12.5 (#3161)
Upgrade parcel-bundler due to a transitive dependency on is-svg.
This resolves CVE-2021-28092.
2021-04-19 07:20:45 -07:00
Joe Previte 003dc0feeb
chore(release): bump version to 3.9.3 2021-04-08 11:18:56 -07:00
Akash Satheesan 3a49299f84
dev(ci): complete refactor
Nearly completely replace the original GitHub actions workflow.
Changes:

- Move from `.sh` files in `ci/steps` to steps in the workflow.
- Move from using docker images for environment to manual setup.
- Upgrade nfpm to v2.3.1

BREAKING CHANGE: official arm64 builds no longer support CentOS 7.
If you need to use CentOS 7 on arm64, build `code-server` locally.
For docs, see the yarn/npm section in `docs/install.md`.
2021-04-08 23:42:01 +05:30
Joe Previte 3db19843e2
chore: add eslint plugin for jest-playwright 2021-04-06 15:46:55 -07:00
Joe Previte 6f98e08bda
feat(ci): add audit job for security 2021-04-06 11:06:04 -07:00
Joe Previte c415fd2d65
chore: bump @types/node to 12.20.7 2021-04-02 12:46:41 -07:00
Joe Previte df6bfbbeaf
feat: bump ts-node to 9.1.1 2021-03-30 16:46:49 -07:00
Joe Previte f688e58472
chore(release): bump version to 3.9.2 2021-03-25 10:33:47 -07:00
Joe Previte fa19f8cac8
feat: add release-prep script 2021-03-24 17:51:06 -07:00
Joe Previte d3c1906390
fix: limit ts-node upgrades 2021-03-24 17:01:28 -07:00
Joe Previte b04104cafe
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-22 10:43:39 -07: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] 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
Joe Previte 071c8e15fc
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-17 13:51:27 -07: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
Joe Previte d3df963d39
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-16 14:42:51 -07:00
Joe Previte 445d7d6e03
fix: update testPathIgnorePatterns for jest 2021-03-16 14:35:43 -07: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
Joe Previte 0ba53b6adf
feat: add prettier-plugin-sh 2021-03-15 15:14:26 -07:00
Asher 3ef7cc7d03
Update yarn test command 2021-03-15 15:47:22 -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
Joe Previte 529d69e8e8
refactor: add scripts to separate unit, e2e tests 2021-03-12 12:00:56 -07:00
Joe Previte ed839c9a03
feat: add test:e2e and test:unit to package.json 2021-03-12 12:00:55 -07: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
Joe Previte 0cb5c2e937
feat: update node version engine in package.json 2021-03-10 10:47:47 -07:00
Joe Previte 606fa26b5a
chore: bump version to 3.9.1 2021-03-05 14:05:31 -07:00
Joe Previte 925073db31
Merge pull request #2773 from cdr/upgrade-vscode-1.53
feat(vscode): update to version 1.53.2
2021-03-05 14:03:10 -07:00
Joe Previte 9ea18636d7
Merge branch 'master' into upgrade-vscode-1.53 2021-02-26 14:23:24 -07:00
Joe Previte 28b440a4ba
feat: add cssStub to jest 2021-02-26 11:51:51 -07:00
Joe Previte 977c579c02
feat: add update-vscode.sh script 2021-02-25 10:19:24 -07:00
Asher 47a05c998a
Gate wtfnode behind WTF_NODE env var
After thinking about it some more it's probably mostly only useful to
see the output when the tests are hanging. Otherwise there's a lot of
noise about Jest child processes and pipes.
2021-02-22 13:41:12 -07:00
Joe Previte ffdbf3a730
feat: add test/videos & /screenshots to gitignore 2021-02-22 13:41:09 -07:00
Joe Previte 236717ee98
fix: update modulePathIgnorePatterns for jest 2021-02-22 13:41:09 -07:00
Joe Previte 34c6ec4c07
feat: add globalSetup for testing 2021-02-22 13:41:09 -07:00
Joe Previte d7e41a3187
fix: increase test timeout to 30000 2021-02-22 13:41:08 -07:00
Joe Previte 0f17ceb9b5
chore: update package.json version 2021-02-12 16:22:31 -07:00
Asher 8c3896cf40
Move compression to deps from dev deps 2021-02-12 16:06:41 -06:00
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 3f837d3036
Fix tests failing due to collisions in release 2021-02-10 10:32:17 -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
Joe Previte 2a2dade309
feat: update version in package.json to 3.8.1 2021-02-05 14:07:00 -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 14c5aecd45
chore: update ts config and jest config 2021-01-25 16:34:32 -07: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 bea8bb0519
refactor: remove mocha 2021-01-21 10:10:33 -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 c4610f7829
v3.8.0
🎅🏼
2020-12-18 15:09:55 -05:00
Asher c7baf5d04a
Merge pull request #2482 from cdr/asar
Symlink node_modules.asar to node_modules in lib/vscode
2020-12-18 10:54:36 -08: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
Asher 121a520447
Symlink node_modules.asar to node_modules in lib/vscode
Closes #2197.
2020-12-17 15:48:19 -06:00
Joe Previte fcc16e5397
refactor: move vscode.sh to postinstall 2020-12-16 11:47:20 -07:00
Joe Previte 25e6f8414a
feat: remove vscode scripts used with submodule 2020-12-15 15:59:12 -07:00
Joe Previte faeed81d43
feat: add vscode:clean script 2020-12-15 14:54:07 -07: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 11f53784c5
v3.7.4 2020-12-01 18:50:31 -05:00
Anmol Sethi ebe4d7ef29
Revamp icons (#2383)
I took our website's SVG favicon and plopped it on a round
white rectangle in Affinity Designer. The I exported it as an SVG and
wrote a script that uses imagemagick to convert to the various sizes and
formats we need.

Closes #2307
2020-11-30 19:11:26 -05:00
Anmol Sethi 93fb76e4a7
v3.7.3 2020-11-24 13:12:10 -05:00
Anmol Sethi a0db6723c1
v3.7.2 2020-11-19 17:28:22 -05:00
Anmol Sethi 2bf91ff6a6
v3.7.1 2020-11-16 17:18:12 -05:00
Anmol Sethi 9917da068a
v3.7.0 2020-11-16 11:11:50 -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
Asher e1702a1d21
Merge branch master into code-asher/ch1385 2020-11-12 11:52:02 -06: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
Asher 9e09c1f92b
Upgrade to Express 5
Now async routes are handled!
2020-11-05 15:08:08 -06:00
Asher 9bde62fbd6
v3.6.2 2020-11-02 17:17:25 -06:00
Asher 112eda4605
Convert routes to Express 2020-10-26 17:56:13 -05:00
Asher 62735da694
v3.6.1 2020-10-23 15:21:50 -05:00
Asher 6000e389bc
Add Express as a dep and regenerate lockfile
The Express types were throwing errors but regenerating the lockfile
resolved them.
2020-10-20 16:18:26 -05:00
Anmol Sethi 4b3c089630
Remove dead code 2020-10-07 15:58:30 -04:00
Anmol Sethi dd996d8f60
v3.6.0 2020-10-07 15:58:30 -04:00
Anmol Sethi 55a7e8b56f
Implement automatic cloud proxying 2020-10-07 15:58:30 -04:00
Anmol Sethi 579bb94a6c
Add coder cloud expose command 2020-10-07 15:58:30 -04:00
Asher ce8577b1c3
Remove open-in flag (#2013) 2020-08-27 15:04:37 -05:00
Anmol Sethi 3912e9e333
Downgrade node types to v12 2020-08-27 11:04:43 -04:00
Anmol Sethi ebbb1187da
Update remaining dependencies 2020-08-26 14:27:30 -04:00
Anmol Sethi c80d093dc4
Update dependencies in package.json
See #1898 and #1905
2020-08-26 13:59:41 -04:00
Anmol Sethi bf09c294cc
Revert "Upgrade to latest typescript"
This reverts commit 6539dd4dbe.

Breaks linting and wasn't required.
2020-08-26 13:32:50 -04:00
Anmol Sethi 6539dd4dbe
Upgrade to latest typescript
Otherwise the build keeps failing for me as tsc won't compile anymore.

Not sure why things work on CI/for asher but I don't think this will
cause any additional issues.
2020-08-26 07:50:51 -04:00
Asher e237589f2e
Update VS Code to 1.48.0 (#1982) 2020-08-25 13:06:41 -05:00
Asher 2fa5037859
Log output to disk 2020-07-29 18:48:07 -05:00
Asher 4b6c0a6fc3
Update logger 2020-07-29 18:48:03 -05:00
Anmol Sethi 48f7c27248
v3.4.1 2020-06-04 06:24:24 -04:00
Anmol Sethi c00f931500
Remove zip library dependency 2020-06-03 18:24:59 -04:00
Anmol Sethi 69ad52907e
v3.4.0 2020-05-27 19:21:15 -04:00
Anmol Sethi f71d8875d0
Rename binary release to standalone 2020-05-27 16:39:17 -04:00
Anmol Sethi fa45fd0e31
Rename static releases to binary releases
More clear as discussed in PR.
2020-05-27 15:57:18 -04:00
Anmol Sethi 5f94d5a687
Release v3.3.1
This release fixes bugs introduced with the release of v3.3.0

- We've reverted to VS Code 1.45.1 due to bugs in 1.46 #1667
- Accessing code-server from a web browser on Windows has been fixed #1642
- Search in project has been fixed #1665
- The glibc requirement on static releases has been lowered to v2.19 #1656
2020-05-18 18:11:52 -04:00
Anmol Sethi 52eeccaba1
v3.3.0 2020-05-17 18:35:36 -04:00
Anmol Sethi aee2599904
Push docker manifest in CI for multi arch image 2020-05-16 16:59:26 -04:00