sku 11.6.0 → 11.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintignore CHANGED
@@ -8,4 +8,5 @@ dist-start/
8
8
  dist-storybook/
9
9
  report/
10
10
  template/
11
- test/test-cases
11
+ test/test-cases/*/*
12
+ !test/test-cases/*/*.test.js
package/.eslintrc CHANGED
@@ -20,6 +20,17 @@
20
20
  "react/jsx-uses-react": "off",
21
21
  "react/react-in-jsx-scope": "off"
22
22
  },
23
+ "overrides": [
24
+ {
25
+ "files": ["test/**"],
26
+ "env": {
27
+ "jest": true
28
+ },
29
+ "globals": {
30
+ "browser": true
31
+ }
32
+ }
33
+ ],
23
34
  "globals": {
24
35
  "__SKU_SRC_PATHS_0__": true,
25
36
  "__SKU_SRC_PATHS_1__": true,
@@ -31,8 +42,12 @@
31
42
  "__SKU_SRC_PATHS_7__": true,
32
43
  "__SKU_SRC_PATHS_8__": true,
33
44
  "__SKU_SRC_PATHS_9__": true,
34
- "browser": true,
35
- "SKU_LIBRARY_NAME": true,
36
- "__SKU_PUBLIC_PATH__": true
45
+ "__SKU_CLIENT_PATH__": true,
46
+ "__SKU_PUBLIC_PATH__": true,
47
+ "__SKU_CSP__": true,
48
+ "__SKU_DEV_HTTPS__": true,
49
+ "__SKU_DEV_MIDDLEWARE_ENABLED__": true,
50
+ "__SKU_DEV_MIDDLEWARE_PATH__": true,
51
+ "SKU_LIBRARY_NAME": true
37
52
  }
38
53
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "bierner.comment-tagged-templates"
4
+ ]
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib"
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # sku
2
2
 
3
+ ## 11.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - **deps**: `@pmmmwh/react-refresh-webpack-plugin@0.5.8` ([#716](https://github.com/seek-oss/sku/pull/716))
8
+
9
+ - Update to eslint-config-seek v10.1.1. Read the following release notes for all the changes: ([#718](https://github.com/seek-oss/sku/pull/718))
10
+
11
+ - [v10.1.0] brings improved TypeScript support
12
+ - [v10.1.1] re-enables the `no-undef` rule for JavaScript files
13
+
14
+ [v10.1.0]: https://github.com/seek-oss/eslint-config-seek/releases/tag/v10.1.0
15
+ [v10.1.1]: https://github.com/seek-oss/eslint-config-seek/releases/tag/v10.1.1
16
+
17
+ ## 11.6.1
18
+
19
+ ### Patch Changes
20
+
21
+ - Fix transpilation of typescript-specific class keywords ([#714](https://github.com/seek-oss/sku/pull/714))
22
+
3
23
  ## 11.6.0
4
24
 
5
25
  ### Minor Changes
@@ -58,6 +58,13 @@ module.exports = ({
58
58
  }
59
59
 
60
60
  const presets = [
61
+ [
62
+ require.resolve('@babel/preset-env'),
63
+ {
64
+ targets: browserslist,
65
+ shippedProposals: true,
66
+ },
67
+ ],
61
68
  lang === 'ts'
62
69
  ? [
63
70
  require.resolve('@babel/preset-typescript'),
@@ -67,13 +74,6 @@ module.exports = ({
67
74
  },
68
75
  ]
69
76
  : null,
70
- [
71
- require.resolve('@babel/preset-env'),
72
- {
73
- targets: browserslist,
74
- shippedProposals: true,
75
- },
76
- ],
77
77
  [
78
78
  require.resolve('@babel/preset-react'),
79
79
  {
package/jest.config.js CHANGED
@@ -1,9 +1,12 @@
1
- const path = require('path');
1
+ /** @type {import('jest').Config} */
2
2
  module.exports = {
3
- setupFilesAfterEnv: [path.resolve(__dirname, 'test/utils/jestSetup.js')],
4
- testMatch: ['**/*.test.js'],
5
- testPathIgnorePatterns: ['test/.*/src'],
6
3
  preset: 'jest-puppeteer',
4
+ setupFilesAfterEnv: ['<rootDir>/test/utils/jestSetup.js'],
5
+ testPathIgnorePatterns: [
6
+ '/node_modules/',
7
+ '<rootDir>/scripts/test.js',
8
+ '<rootDir>/test/.*/src',
9
+ ],
7
10
  watchPlugins: [
8
11
  'jest-watch-typeahead/filename',
9
12
  'jest-watch-typeahead/testname',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "11.6.0",
3
+ "version": "11.6.2",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "node": ">=14.15"
11
11
  },
12
12
  "scripts": {
13
- "lint": "npm run format-check && eslint .",
13
+ "lint": "yarn format-check && eslint --cache .",
14
14
  "check": "yarn check --integrity && echo 'Ignore paths from lint-staged'",
15
15
  "pretest": "yarn check --integrity",
16
16
  "test": "SKU_TELEMETRY=false SKU_DISABLE_CACHE=true OPEN_TAB=false jest --verbose --detectOpenHandles --runInBand",
@@ -29,10 +29,10 @@
29
29
  },
30
30
  "lint-staged": {
31
31
  "+(package.json|yarn.lock)": [
32
- "npm run check"
32
+ "yarn run check"
33
33
  ],
34
34
  "**/*.js": [
35
- "eslint --fix"
35
+ "eslint --cache --fix"
36
36
  ],
37
37
  "**/*.{js,ts,tsx,md,less,css}": [
38
38
  "prettier --write"
@@ -68,7 +68,7 @@
68
68
  "@loadable/component": "^5.14.1",
69
69
  "@loadable/server": "^5.14.0",
70
70
  "@loadable/webpack-plugin": "^5.14.0",
71
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
71
+ "@pmmmwh/react-refresh-webpack-plugin": "0.5.8",
72
72
  "@storybook/builder-webpack5": "^6.5.12",
73
73
  "@storybook/manager-webpack5": "^6.5.12",
74
74
  "@storybook/react": "^6.5.12",
@@ -111,7 +111,7 @@
111
111
  "esbuild-register": "^3.3.3",
112
112
  "escape-string-regexp": "^4.0.0",
113
113
  "eslint": "^7.18.0",
114
- "eslint-config-seek": "^10.0.0",
114
+ "eslint-config-seek": "^10.1.1",
115
115
  "exception-formatter": "^2.1.2",
116
116
  "express": "^4.16.3",
117
117
  "fast-glob": "^3.2.5",
@@ -177,7 +177,7 @@
177
177
  "@vocab/react": "^1.0.1",
178
178
  "assert": "^2.0.0",
179
179
  "async-disk-cache": "^2.1.0",
180
- "braid-design-system": "^30.0.2",
180
+ "braid-design-system": "^31.0.0",
181
181
  "child-process-promise": "^2.2.1",
182
182
  "css": "^3.0.0",
183
183
  "diffable-html": "^4.0.0",
@@ -189,7 +189,7 @@
189
189
  "jsonc-parser": "^3.0.0",
190
190
  "node-dir": "^0.1.17",
191
191
  "node-fetch": "^2.6.1",
192
- "puppeteer": "^18.0.5",
192
+ "puppeteer": "^19.0.0",
193
193
  "react": "^17.0.1",
194
194
  "react-dom": "^17.0.1",
195
195
  "react-helmet": "^6.1.0",