feat: v4.0.0 (#1016)

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Mathieu COSYNS <64072917+Mathieu-COSYNS@users.noreply.github.com>
This commit is contained in:
Daniel Lautzenheiser
2024-01-03 15:14:09 -05:00
committed by GitHub
parent 682576ffc4
commit 799c7e6936
732 changed files with 48477 additions and 10886 deletions

View File

@ -34,9 +34,6 @@ module.exports = {
},
],
'no-duplicate-imports': 'error',
'@emotion/no-vanilla': 'off',
'@emotion/import-from-emotion': 'error',
'@emotion/styled-import': 'error',
'require-atomic-updates': [0],
'object-shorthand': ['error', 'always'],
'prefer-const': [
@ -57,7 +54,7 @@ module.exports = {
],
'import/prefer-default-export': 'error',
},
plugins: ['babel', '@emotion', 'cypress', 'unicorn', 'react-hooks'],
plugins: ['babel', 'cypress', 'unicorn', 'react-hooks'],
settings: {
react: {
version: 'detect',
@ -97,7 +94,6 @@ module.exports = {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': [0],
'@typescript-eslint/explicit-module-boundary-types': [0],
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-use-before-define': [
'error',
{ functions: false, classes: true, variables: true },

View File

@ -42,12 +42,6 @@ function presets() {
return [
'@babel/preset-react',
'@babel/preset-env',
[
'@emotion/babel-preset-css-prop',
{
autoLabel: 'always',
},
],
'@babel/typescript',
];
}

View File

@ -1,6 +1,6 @@
{
"name": "@staticcms/app",
"version": "3.4.8",
"version": "4.0.0",
"license": "MIT",
"description": "Static CMS application.",
"repository": "https://github.com/StaticJsCMS/static-cms",
@ -37,10 +37,9 @@
"last 2 Safari versions"
],
"dependencies": {
"@babel/eslint-parser": "7.21.3",
"@babel/runtime": "7.21.0",
"@emotion/babel-preset-css-prop": "11.10.0",
"@staticcms/core": "^3.4.8",
"@babel/eslint-parser": "7.22.15",
"@babel/runtime": "7.23.1",
"@staticcms/core": "^4.0.0",
"buffer": "6.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
@ -48,59 +47,57 @@
"ts-loader": "9.4.2"
},
"devDependencies": {
"@babel/cli": "7.21.0",
"@babel/core": "7.21.4",
"@babel/cli": "7.23.0",
"@babel/core": "7.23.0",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-export-default-from": "7.18.10",
"@babel/plugin-proposal-export-default-from": "7.22.17",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-numeric-separator": "7.18.6",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.21.4",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.4",
"@emotion/eslint-plugin": "11.10.0",
"@emotion/jest": "11.10.5",
"@types/node": "18.16.14",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.1",
"@typescript-eslint/eslint-plugin": "5.59.1",
"@typescript-eslint/parser": "5.59.1",
"autoprefixer": "10.4.14",
"@babel/preset-env": "7.22.20",
"@babel/preset-react": "7.22.15",
"@babel/preset-typescript": "7.23.0",
"@types/node": "18.17.19",
"@types/react": "18.2.25",
"@types/react-dom": "18.2.10",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"autoprefixer": "10.4.16",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "9.1.2",
"babel-plugin-emotion": "11.0.0",
"babel-loader": "9.1.3",
"babel-plugin-inline-json-import": "0.3.2",
"babel-plugin-inline-react-svg": "2.0.2",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-transform-builtin-extend": "1.1.2",
"babel-plugin-transform-define": "2.1.0",
"babel-plugin-transform-define": "2.1.4",
"babel-plugin-transform-export-extensions": "6.22.0",
"babel-plugin-transform-inline-environment-variables": "0.4.4",
"cross-env": "7.0.3",
"css-loader": "6.7.3",
"dotenv": "16.0.3",
"eslint": "8.39.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"css-loader": "6.8.1",
"dotenv": "16.3.1",
"eslint": "8.50.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-unicorn": "46.0.1",
"mini-css-extract-plugin": "2.7.5",
"eslint-plugin-unicorn": "48.0.1",
"mini-css-extract-plugin": "2.7.6",
"npm-run-all": "4.1.5",
"postcss": "8.4.23",
"postcss-scss": "4.0.6",
"prettier": "2.8.8",
"postcss": "8.4.31",
"postcss-loader": "7.3.3",
"postcss-scss": "4.0.9",
"prettier": "3.0.3",
"source-map-loader": "4.0.1",
"style-loader": "3.3.2",
"style-loader": "3.3.3",
"tailwindcss": "3.3.3",
"to-string-loader": "1.2.0",
"tsconfig-paths-webpack-plugin": "4.0.1",
"typescript": "5.0.4",
"webpack": "5.80.0",
"webpack-cli": "5.0.2"
"typescript": "5.2.2",
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
},
"publishConfig": {
"access": "public",

View File

@ -52,7 +52,7 @@
"@staticcms/core": ["../core/src"],
"@staticcms/core/*": ["../core/src/*"]
},
"types": ["@emotion/react/types/css-prop", "@types/jest", "@testing-library/jest-dom"]
"types": ["@types/jest", "@testing-library/jest-dom"]
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]

View File

@ -86,7 +86,6 @@ module.exports = {
!isProduction && new ReactRefreshWebpackPlugin(),
isProduction && new MiniCssExtractPlugin(),
new webpack.IgnorePlugin({ resourceRegExp: /^esprima$/ }),
new webpack.IgnorePlugin({ resourceRegExp: /moment\/locale\// }),
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],