Skip to content

Commit

Permalink
chore(deps): upgrade to latest stable (#2949)
Browse files Browse the repository at this point in the history
- also upgrade typescript this time. workaround a control-flow inference bug in  st-structure.
- regenerate lock file
  • Loading branch information
AviVahl authored Mar 19, 2024
1 parent 684fe4f commit 49ae4b0
Show file tree
Hide file tree
Showing 17 changed files with 445 additions and 357 deletions.
730 changes: 409 additions & 321 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"prettify": "npx prettier . --write"
},
"devDependencies": {
"@file-services/memory": "^9.0.0",
"@file-services/node": "^9.0.0",
"@file-services/memory": "^9.1.0",
"@file-services/node": "^9.1.0",
"@rollup/plugin-html": "^1.0.3",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/chai": "^4.3.12",
"@types/chai": "^4.3.13",
"@types/chai-subset": "^1.3.5",
"@types/css-selector-tokenizer": "^0.7.4",
"@types/cssesc": "^3.0.2",
Expand All @@ -38,13 +38,13 @@
"@types/mocha": "^10.0.6",
"@types/node": "18",
"@types/postcss-safe-parser": "^5.0.4",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/validate-npm-package-name": "^4.0.2",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@typescript-eslint/rule-tester": "^7.1.1",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/rule-tester": "^7.3.1",
"autoprefixer": "^10.4.18",
"c8": "^9.1.0",
"chai": "^4.3.10",
Expand All @@ -59,19 +59,19 @@
"node-eval": "^2.0.0",
"npm-run-all": "^4.1.5",
"playwright-chromium": "^1.42.1",
"postcss": "^8.4.35",
"postcss": "^8.4.37",
"promise-assist": "^2.0.1",
"raw-loader": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"rollup": "^4.12.1",
"rollup": "^4.13.0",
"source-map": "^0.7.4",
"source-map-loader": "^5.0.0",
"style-loader": "^3.3.4",
"ts-expect": "^1.3.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "~5.3.3",
"typescript": "~5.4.2",
"url-loader": "^4.1.1",
"webpack": "^5.90.3",
"yargs": "^17.7.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test": "mocha \"./dist/test/**/*.spec.js\" --timeout 25000"
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/types": "^9.0.0",
"@file-services/node": "^9.1.0",
"@file-services/types": "^9.1.0",
"@stylable/build-tools": "^6.0.1",
"@stylable/code-formatter": "^6.0.1",
"@stylable/core": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/code-formatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@stylable/core": "^6.0.1",
"@tokey/css-value-parser": "^0.1.4",
"js-beautify": "^1.15.1",
"postcss": "^8.4.35"
"postcss": "^8.4.37"
},
"files": [
"dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-test-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"test": "mocha \"./dist/test/**/*.spec.js\""
},
"dependencies": {
"@file-services/memory": "^9.0.0",
"@file-services/memory": "^9.1.0",
"@stylable/core": "^6.0.1",
"chai": "^4.3.10",
"flat": "^5.0.2",
"postcss": "^8.4.35"
"postcss": "^8.4.37"
},
"files": [
"dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "mocha \"./dist/test/**/*.spec.js\""
},
"dependencies": {
"@file-services/resolve": "^9.0.0",
"@file-services/resolve": "^9.1.0",
"@tokey/css-selector-parser": "^0.6.2",
"@tokey/css-value-parser": "^0.1.4",
"@tokey/imports-parser": "^1.0.0",
Expand All @@ -16,7 +16,7 @@
"is-vendor-prefixed": "^4.0.0",
"lodash.clonedeep": "^4.5.0",
"lodash.clonedeepwith": "^4.5.0",
"postcss": "^8.4.35",
"postcss": "^8.4.37",
"postcss-js": "^4.0.1",
"postcss-nested": "^6.0.1",
"postcss-safe-parser": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/features/st-structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function validateTopLevelClass({
// report missing selector
const arrowEnd = def.ranges.mapArrow[def.ranges.mapArrow.length - 1];
for (let i = def.params.length - 1; i >= 0; i--) {
const node = def.params[i];
const node: BaseAstNode = def.params[i];
if (node === arrowEnd) {
break;
} else if (isExactLiteral(node, ',')) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/helpers/global.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FunctionNode } from 'postcss-value-parser';

export const PROPERTY = `-st-global` as const;
export const GLOBAL_FUNC = 'st-global' as const;
export const PROPERTY = `-st-global`;
export const GLOBAL_FUNC = 'st-global';

const globalValueRegExp = new RegExp(`^${GLOBAL_FUNC}\\((.*?)\\)$`);

Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"esbuild": ">=0.17.18"
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/node": "^9.1.0",
"@stylable/build-tools": "^6.0.1",
"@stylable/cli": "^6.0.1",
"@stylable/core": "^6.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin-stylable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"test": "mocha \"dist/test/**/*.spec.js\" --timeout 5000"
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/node": "^9.1.0",
"@stylable/core": "^6.0.1",
"@typescript-eslint/scope-manager": "^7.1.1",
"@typescript-eslint/utils": "^7.1.1",
"@typescript-eslint/scope-manager": "^7.3.1",
"@typescript-eslint/utils": "^7.3.1",
"postcss-safe-parser": "^7.0.0"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "mocha \"./dist/test/**/*.spec.js\""
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/node": "^9.1.0",
"@stylable/core": "^6.0.1",
"@stylable/module-utils": "^6.0.1",
"@stylable/node": "^6.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"typescript": ">=3.8"
},
"dependencies": {
"@file-services/types": "^9.0.0",
"@file-services/typescript": "^9.0.0",
"@file-services/types": "^9.1.0",
"@file-services/typescript": "^9.1.0",
"@stylable/code-formatter": "^6.0.1",
"@stylable/core": "^6.0.1",
"@tokey/core": "^1.4.0",
"@tokey/css-selector-parser": "^0.6.2",
"@tokey/css-value-parser": "^0.1.4",
"css-selector-tokenizer": "^0.8.0",
"postcss": "^8.4.35",
"postcss": "^8.4.37",
"postcss-value-parser": "^4.2.0",
"vscode-css-languageservice": "^6.2.12",
"vscode-languageserver": "^9.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "mocha \"./dist/test/**/*.spec.js\" --timeout 10000"
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/node": "^9.1.0",
"@stylable/build-tools": "^6.0.1",
"@stylable/core": "^6.0.1",
"@stylable/module-utils": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/require-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function attachHook({

const prevHook = require.extensions[HOOK_EXTENSION];
require.extensions[HOOK_EXTENSION] = function cssModulesHook(m: any, filename: string) {
if (matcher!(filename) || !prevHook) {
if (matcher(filename) || !prevHook) {
const useJSModule = !ignoreJSModules && fs.existsSync(filename + '.js');
const source = fs.readFileSync(useJSModule ? filename + '.js' : filename).toString();
const code = useJSModule ? source : stylableToModule(source, filename);
Expand Down
4 changes: 2 additions & 2 deletions packages/optimizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dependencies": {
"@stylable/core": "^6.0.1",
"@tokey/css-selector-parser": "^0.6.2",
"lightningcss": "^1.24.0",
"postcss": "^8.4.35"
"lightningcss": "^1.24.1",
"postcss": "^8.4.37"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rollup": "^2.70.0 || ^3.0.0 || ^4.0.0"
},
"dependencies": {
"@file-services/node": "^9.0.0",
"@file-services/node": "^9.1.0",
"@stylable/build-tools": "^6.0.1",
"@stylable/cli": "^6.0.1",
"@stylable/core": "^6.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@stylable/optimizer": "^6.0.1",
"@stylable/runtime": "^6.0.1",
"decache": "^4.6.2",
"enhanced-resolve": "^5.15.1",
"enhanced-resolve": "^5.16.0",
"lodash.clonedeep": "^4.5.0",
"postcss": "^8.4.35"
"postcss": "^8.4.37"
},
"files": [
"dist",
Expand Down

0 comments on commit 49ae4b0

Please sign in to comment.