Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm v7 & dependency improvements #234

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

arcticicestudio
Copy link
Contributor

Resolves #233

The npm CLI v7 [1] introduced the new `package-lock.json` format v2 [2]
that unlocks the ability to do deterministically reproducible builds and
includes everything npm needs to fully build the package tree.
Since this is a new major version the current `package-lock.json` file
has been updated to the new format.

At the same time outdated dependencies have been upgraded to their
latest, compatible version. This also changes the versions to use the
`^` caret range selector [7] to reduce the overhead of updating
dependencies.

- `@arcticicestudio/eslint-config-base` [5] - the minimum versions
  have been bumped from `0.5.0` to `0.11.0` [6].
- `babel-eslint` [3] -> [`@babel/eslint-parser`][4] - the `babel-eslint`
  package is deprecated and is now available as `@babel/eslint-parser`.
- `eslint-plugin-json` [8] -> [`eslint-plugin-jsonc`][9] - since
  Visual Studio Code uses JSONC [10] the `eslint-plugin-jsonc` matches
  better to the scope of this repository. It also utilizies the ESLint
  engine by passing the AST to it.
- `del-cli` [13] - updated from version `1.1.0` [11] to `^4.0.1` [12].
- `eslint` [14] - updated from version `5.16.0` [15] to `^7.32.0` [16].
- `eslint-plugin-import` [17] - updated from version `2.17.3` [18] to
  `^2.24.2` [19].
- `eslint-plugin-prettier` [20] - updated from version `3.1.0` [18] to
  `^4.0.0` [22].
- `prettier` [23] - updated from version `1.17.1` [24] to `^2.4.1` [25].
- `remark-cli` [26] - updated from version `6.0.1` [27] to
  `^9.0.0` [28].
- `remark-preset-lint-arcticicestudio` [29] ->
  `@arcticicestudio/remark-preset-lint` [30] - the
  `remark-preset-lint-arcticicestudio` package is deprecated and is now
  available as `@arcticicestudio/remark-preset-lint`. This also includes
  the linting and adjusting for matches that are found after running
  with the new rules.
- `vsce` [31] - updated from version `6.0.1` [32] to `^1.100.0` [33].

[1]: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli
[2]: https://blog.npmjs.org/post/621733939456933888/npm-v7-series-why-keep-package-lockjson
[3]: https://github.com/babel/babel-eslint
[4]: https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser
[5]: https://github.com/arcticicestudio/styleguide-javascript/tree/main/packages/%40arcticicestudio/eslint-config-base
[6]: https://github.com/arcticicestudio/styleguide-javascript/releases/tag/v0.11.0
[7]: https://semver.npmjs.com
[8]: https://github.com/azeemba/eslint-plugin-json
[9]: https://github.com/ota-meshi/eslint-plugin-jsonc
[10]: https://komkom.github.io
[11]: https://github.com/sindresorhus/del-cli/releases/tag/v1.1.0
[12]: https://github.com/sindresorhus/del-cli/releases/tag/v4.0.1
[13]: https://github.com/sindresorhus/del-cli
[14]: https://eslint.org
[15]: https://github.com/eslint/eslint/releases/tag/v5.16.0
[16]: https://github.com/eslint/eslint/releases/tag/v7.32.0
[17]: https://github.com/import-js/eslint-plugin-import
[18]: https://github.com/import-js/eslint-plugin-import/releases/tag/v2.17.3
[19]: https://github.com/import-js/eslint-plugin-import/releases/tag/v2.24.2
[20]: https://github.com/prettier/eslint-plugin-prettier
[21]: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v3.1.0
[22]: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v4.0.0
[23]: https://prettier.io
[24]: https://github.com/prettier/prettier/releases/tag/2.4.1
[25]: https://github.com/prettier/prettier/releases/tag/2.4.1
[26]: https://remark.js.org
[27]: https://github.com/remarkjs/remark/releases/tag/remark-cli%406.0.1
[28]: https://github.com/remarkjs/remark/releases/tag/remark-cli%409.0.0
[29]: https://www.npmjs.com/package/remark-preset-lint-arcticicestudio
[30]: https://github.com/arcticicestudio/styleguide-markdown/tree/main/packages/%40arcticicestudio/remark-preset-lint
[31]: https://github.com/microsoft/vscode-vsce
[32]: https://github.com/microsoft/vscode-vsce/releases/tag/v1.62.0
[33]: https://github.com/microsoft/vscode-vsce/releases/tag/v1.100.0

Co-authrored-by: Sven Greb <development@svengreb.de>

GH-233
@arcticicestudio arcticicestudio merged commit e188f06 into develop Sep 25, 2021
@arcticicestudio arcticicestudio deleted the improvement/gh-233-npm-v7-and-deps branch September 25, 2021 16:37
arcticicestudio added a commit that referenced this pull request Sep 25, 2021
The npm CLI v7 [1] introduced the new `package-lock.json` format v2 [2]
that unlocks the ability to do deterministically reproducible builds and
includes everything npm needs to fully build the package tree.
Since this is a new major version the current `package-lock.json` file
has been updated to the new format.

At the same time outdated dependencies have been upgraded to their
latest, compatible version. This also changes the versions to use the
`^` caret range selector [7] to reduce the overhead of updating
dependencies.

- `@arcticicestudio/eslint-config-base` [5] - the minimum versions
  have been bumped from `0.5.0` to `0.11.0` [6].
- `babel-eslint` [3] -> [`@babel/eslint-parser`][4] - the `babel-eslint`
  package is deprecated and is now available as `@babel/eslint-parser`.
- `eslint-plugin-json` [8] -> [`eslint-plugin-jsonc`][9] - since
  Visual Studio Code uses JSONC [10] the `eslint-plugin-jsonc` matches
  better to the scope of this repository. It also utilizies the ESLint
  engine by passing the AST to it.
- `del-cli` [13] - updated from version `1.1.0` [11] to `^4.0.1` [12].
- `eslint` [14] - updated from version `5.16.0` [15] to `^7.32.0` [16].
- `eslint-plugin-import` [17] - updated from version `2.17.3` [18] to
  `^2.24.2` [19].
- `eslint-plugin-prettier` [20] - updated from version `3.1.0` [18] to
  `^4.0.0` [22].
- `prettier` [23] - updated from version `1.17.1` [24] to `^2.4.1` [25].
- `remark-cli` [26] - updated from version `6.0.1` [27] to
  `^9.0.0` [28].
- `remark-preset-lint-arcticicestudio` [29] ->
  `@arcticicestudio/remark-preset-lint` [30] - the
  `remark-preset-lint-arcticicestudio` package is deprecated and is now
  available as `@arcticicestudio/remark-preset-lint`. This also includes
  the linting and adjusting for matches that are found after running
  with the new rules.
- `vsce` [31] - updated from version `6.0.1` [32] to `^1.100.0` [33].

[1]: https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli
[2]: https://blog.npmjs.org/post/621733939456933888/npm-v7-series-why-keep-package-lockjson
[3]: https://github.com/babel/babel-eslint
[4]: https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser
[5]: https://github.com/arcticicestudio/styleguide-javascript/tree/main/packages/%40arcticicestudio/eslint-config-base
[6]: https://github.com/arcticicestudio/styleguide-javascript/releases/tag/v0.11.0
[7]: https://semver.npmjs.com
[8]: https://github.com/azeemba/eslint-plugin-json
[9]: https://github.com/ota-meshi/eslint-plugin-jsonc
[10]: https://komkom.github.io
[11]: https://github.com/sindresorhus/del-cli/releases/tag/v1.1.0
[12]: https://github.com/sindresorhus/del-cli/releases/tag/v4.0.1
[13]: https://github.com/sindresorhus/del-cli
[14]: https://eslint.org
[15]: https://github.com/eslint/eslint/releases/tag/v5.16.0
[16]: https://github.com/eslint/eslint/releases/tag/v7.32.0
[17]: https://github.com/import-js/eslint-plugin-import
[18]: https://github.com/import-js/eslint-plugin-import/releases/tag/v2.17.3
[19]: https://github.com/import-js/eslint-plugin-import/releases/tag/v2.24.2
[20]: https://github.com/prettier/eslint-plugin-prettier
[21]: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v3.1.0
[22]: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v4.0.0
[23]: https://prettier.io
[24]: https://github.com/prettier/prettier/releases/tag/2.4.1
[25]: https://github.com/prettier/prettier/releases/tag/2.4.1
[26]: https://remark.js.org
[27]: https://github.com/remarkjs/remark/releases/tag/remark-cli%406.0.1
[28]: https://github.com/remarkjs/remark/releases/tag/remark-cli%409.0.0
[29]: https://www.npmjs.com/package/remark-preset-lint-arcticicestudio
[30]: https://github.com/arcticicestudio/styleguide-markdown/tree/main/packages/%40arcticicestudio/remark-preset-lint
[31]: https://github.com/microsoft/vscode-vsce
[32]: https://github.com/microsoft/vscode-vsce/releases/tag/v1.62.0
[33]: https://github.com/microsoft/vscode-vsce/releases/tag/v1.100.0


Co-authrored-by: Sven Greb <development@svengreb.de>

Closes GH-233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm v7 & dependency improvements
2 participants