Skip to content

Commit 7758685

Browse files
authored
Release 10.0.0 (#79)
## What's changed * feat: upgrade deps and add react compiler rules ([#78](#78))
2 parents 6c77f03 + 50c3ea0 commit 7758685

File tree

6 files changed

+2718
-2684
lines changed

6 files changed

+2718
-2684
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
name: release
1+
name: Create a new release PR
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_version:
7+
type: string
8+
description: 'The next version to release'
9+
required: false
410

511
jobs:
612
release:
7-
uses: datavisyn/github-workflows/.github/workflows/release-source.yml@main
8-
secrets: inherit
13+
uses: datavisyn/github-workflows/.github/workflows/release-source.yml@feat-automate-releases-releasenotes
14+
secrets: inherit

bin/commands/lint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
type: 'boolean',
99
}),
1010
handler: (args) => {
11-
// TODO: Remove --fix to ensure all linting errors are reported in CI. Disable until a codebase is fully migrated, as otherwise formatting causes merge conflicts.
12-
call('eslint', `--fix ${args.cache ? '--cache' : ''} --no-error-on-unmatched-pattern ${(args.strings || []).join(' ')} "src/**/*.ts{,x}" "tests/**/*.ts{,x}" "cypress/**/*.ts{,x}"`);
11+
call('eslint', `${args.cache ? '--cache' : ''} --no-error-on-unmatched-pattern ${(args.strings || []).join(' ')} "src/**/*.ts{,x}" "tests/**/*.ts{,x}" "cypress/**/*.ts{,x}"`);
1312
},
1413
};

config/eslintrc.template.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = ({ tsconfigRootDir }) => ({
1010
'plugin:@typescript-eslint/recommended',
1111
'plugin:prettier/recommended',
1212
],
13-
plugins: ['react', '@typescript-eslint'],
13+
plugins: ['react', '@typescript-eslint', 'react-compiler'],
1414
ignorePatterns: ['*.js'],
1515
env: {
1616
browser: true,
@@ -37,6 +37,7 @@ module.exports = ({ tsconfigRootDir }) => ({
3737
return acc;
3838
}, {}),
3939
'class-methods-use-this': 'off',
40+
curly: [2, 'all'],
4041
'linebreak-style': 'off',
4142
'no-console': 'off',
4243
'no-continue': 'off',
@@ -87,6 +88,7 @@ module.exports = ({ tsconfigRootDir }) => ({
8788
displayName: 'static public field',
8889
},
8990
],
91+
'react-compiler/react-compiler': 'warn',
9092
},
9193
overrides: [
9294
{

package.json

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "9.0.0",
4+
"version": "10.0.0",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",
@@ -29,15 +29,16 @@
2929
"lint:fix": "eslint --fix bin/**/*.js config/**/*.js tests/**/*.js",
3030
"test": "jest -w 1",
3131
"test:watch": "jest -w 1 --watch",
32+
"build": "echo 'No build script defined'",
3233
"dist": "npm run lint && npm run test"
3334
},
3435
"dependencies": {
35-
"@rsdoctor/cli": "^0.1.3",
36-
"@rsdoctor/rspack-plugin": "^0.1.3",
37-
"@rspack/cli": "~0.5.4",
38-
"@rspack/core": "~0.5.4",
39-
"@rspack/plugin-minify": "~0.5.4",
40-
"@rspack/plugin-react-refresh": "~0.5.4",
36+
"@rsdoctor/cli": "^0.3.10",
37+
"@rsdoctor/rspack-plugin": "^0.3.10",
38+
"@rspack/cli": "~0.7.5",
39+
"@rspack/core": "~0.7.5",
40+
"@rspack/plugin-minify": "~0.7.5",
41+
"@rspack/plugin-react-refresh": "~0.7.5",
4142
"@storybook/addon-actions": "^7.6.17",
4243
"@storybook/addon-essentials": "^7.6.17",
4344
"@storybook/addon-interactions": "^7.6.17",
@@ -48,58 +49,59 @@
4849
"@storybook/react": "^7.6.17",
4950
"@storybook/react-webpack5": "^7.6.17",
5051
"@storybook/testing-library": "0.2.2",
51-
"@swc/core": "~1.4.2",
52-
"@swc/helpers": "~0.5.6",
52+
"@swc/core": "~1.7.2",
53+
"@swc/helpers": "~0.5.12",
5354
"@swc/jest": "~0.2.36",
5455
"@types/jest": "~27.4.1",
55-
"@types/node": "^20.11.20",
56-
"@typescript-eslint/eslint-plugin": "~7.1.0",
57-
"@typescript-eslint/parser": "~7.1.0",
56+
"@types/node": "^20.14.12",
57+
"@typescript-eslint/eslint-plugin": "~7.17.0",
58+
"@typescript-eslint/parser": "~7.17.0",
5859
"dotenv": "^16.4.5",
5960
"dotenv-expand": "^11.0.6",
6061
"eslint": "^8.57.0",
6162
"eslint-config-airbnb": "^19.0.4",
6263
"eslint-config-airbnb-base": "^15.0.0",
63-
"eslint-config-airbnb-typescript": "^17.1.0",
64+
"eslint-config-airbnb-typescript": "^18.0.0",
6465
"eslint-config-prettier": "^9.1.0",
6566
"eslint-config-react-app": "^7.0.1",
66-
"eslint-plugin-chai-friendly": "^0.7.4",
67-
"eslint-plugin-cypress": "^2.15.1",
67+
"eslint-plugin-chai-friendly": "^1.0.0",
68+
"eslint-plugin-cypress": "^3.4.0",
6869
"eslint-plugin-import": "^2.29.1",
6970
"eslint-plugin-jest": "^27.9.0",
70-
"eslint-plugin-jsx-a11y": "^6.8.0",
71-
"eslint-plugin-prettier": "^5.1.3",
72-
"eslint-plugin-react": "^7.33.2",
73-
"eslint-plugin-react-hooks": "^4.6.0",
71+
"eslint-plugin-jsx-a11y": "^6.9.0",
72+
"eslint-plugin-prettier": "^5.2.1",
73+
"eslint-plugin-react": "^7.35.0",
74+
"eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
75+
"eslint-plugin-react-hooks": "^4.6.2",
7476
"fork-ts-checker-webpack-plugin": "^9.0.2",
7577
"fs-extra": "^11.2.0",
76-
"glob": "^10.3.10",
77-
"html-loader": "~5.0.0",
78+
"glob": "^11.0.0",
79+
"html-loader": "~5.1.0",
7880
"html-webpack-plugin": "^5.6.0",
7981
"identity-obj-proxy": "^3.0.0",
8082
"jest": "^27.5.1",
8183
"jest-raw-loader": "~1.0.1",
8284
"jest-resolve": "^27.4.2",
8385
"postcss": "^8.4.35",
8486
"postcss-flexbugs-fixes": "^5.0.2",
85-
"postcss-loader": "^8.1.0",
87+
"postcss-loader": "^8.1.1",
8688
"postcss-normalize": "^10.0.1",
87-
"postcss-preset-env": "^9.4.0",
88-
"prettier": "^3.2.5",
89+
"postcss-preset-env": "^9.6.0",
90+
"prettier": "^3.3.3",
8991
"react-dev-utils": "^12.0.1",
90-
"react-refresh": "^0.14.0",
92+
"react-refresh": "^0.14.2",
9193
"resolve-url-loader": "^5.0.0",
92-
"rimraf": "~5.0.5",
94+
"rimraf": "~6.0.1",
9395
"rspack-plugin-dotenv": "^0.0.3",
94-
"sass-embedded": "~1.71.1",
95-
"sass-loader": "^14.1.1",
96+
"sass-embedded": "~1.77.8",
97+
"sass-loader": "^16.0.0",
9698
"shx": "~0.3.4",
9799
"storybook": "^7.6.17",
98100
"storybook-addon-swc": "^1.2.0",
99-
"tailwindcss": "^3.4.1",
101+
"tailwindcss": "^3.4.7",
100102
"ts-node": "^10.9.2",
101-
"tslib": "~2.6.2",
102-
"typescript": "~5.3.3",
103+
"tslib": "~2.6.3",
104+
"typescript": "~5.5.4",
103105
"util": "^0.12.5",
104106
"yargs": "^17.7.2"
105107
},
@@ -109,10 +111,10 @@
109111
"jest-dev-server": "^6.1.1"
110112
},
111113
"peerDependencies": {
112-
"@types/react": "^18.0.0",
113-
"@types/react-dom": "^18.0.0",
114-
"react": "^18.0.0",
115-
"react-dom": "^18.0.0"
114+
"@types/react": "^18.3.3",
115+
"@types/react-dom": "^18.3.0",
116+
"react": "^18.3.1",
117+
"react-dom": "^18.3.1"
116118
},
117119
"jest": {
118120
"testPathIgnorePatterns": [

tests_fixtures/standalone_template/cypress/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"sourceMap": false,
6+
"declarationMap": false,
67
"types": [
78
"cypress"
89
]

0 commit comments

Comments
 (0)