@flatjs/evolve 1.8.1-next.107 → 1.8.1-next.108

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.108
4
+
5
+ ### Patch Changes
6
+
7
+ - 75e16ab: change `circle-dependency` error to waring as default
8
+ - 7941f1e: bump version
9
+ - Updated dependencies [891a384]
10
+ - Updated dependencies [7941f1e]
11
+ - @flatjs/evolve-preset-babel@1.8.1-next.24
12
+ - @flatjs/forge-postcss-plugin-pixel@1.8.1-next.39
13
+ - @flatjs/common@1.8.1-next.39
14
+ - @flatjs/graph@1.8.1-next.58
15
+ - @flatjs/mock@1.8.1-next.82
16
+
3
17
  ## 1.8.1-next.107
4
18
 
5
19
  ### Patch Changes
@@ -16,7 +16,7 @@ export interface Options {
16
16
  include?: RegExp;
17
17
  /**
18
18
  * add errors to webpack instead of warnings
19
- * @default true
19
+ * @default false
20
20
  */
21
21
  failOnError?: boolean;
22
22
  /**
@@ -1 +1 @@
1
- import{relative}from"node:path";import{mergeOptions}from"@flatjs/common";import Graph from"tarjan-graph";import webpack from"webpack";const BASE_ERROR="Circular dependency detected:\r\n",PLUGIN_TITLE="CircularDependencyPlugin";export class CircularDependencyPlugin{constructor(o={}){this.options=mergeOptions({exclude:/node_modules/,include:/.*/,failOnError:!0,allowAsyncCycles:!1,projectCwd:process.cwd()},o)}apply(o){const e=this.options.projectCwd;o.hooks.compilation.tap(PLUGIN_TITLE,(o=>{o.hooks.optimizeModules.tap(PLUGIN_TITLE,(t=>{this.options.onStart&&this.options.onStart({compilation:o});const n=new(Graph.default||Graph);for(const e of t){const t=[];for(const n of e.dependencies){if(n.constructor&&"CommonJsSelfReferenceDependency"===n.constructor.name)continue;let r=null;r=o.moduleGraph?o.moduleGraph.getModule(n):n.module,r&&(r instanceof webpack.NormalModule&&r.resource&&(this.options.allowAsyncCycles&&n.weak||e!==r&&t.push(r.identifier())))}n.add(e.identifier(),t)}const r=n.getCycles();this.isCyclic(r,o,e),this.options.onEnd&&this.options.onEnd({compilation:o})}))}))}isCyclic(o,e,t){o.forEach((o=>{const n=o.slice().reverse().map((o=>{const t=e.findModule(o.name);return t instanceof webpack.NormalModule&&t.resource||null}));if(n.every((o=>!o||this.options.exclude.test(o)||!this.options.include.test(o))))return;const r=n.map((o=>relative(t,o)));if(this.options.onDetected){try{this.options.onDetected({paths:r.concat([r[0]]),compilation:e})}catch(o){e.errors.push(o)}return}const s=new Error(BASE_ERROR.concat(r.concat([r[0]]).join(" -> ")));this.options.failOnError?e.errors.push(s):e.warnings.push(s)}))}}
1
+ import{relative}from"node:path";import{mergeOptions}from"@flatjs/common";import Graph from"tarjan-graph";import webpack from"webpack";const BASE_ERROR="Circular dependency detected:\r\n",PLUGIN_TITLE="CircularDependencyPlugin";export class CircularDependencyPlugin{constructor(o={}){this.options=mergeOptions({exclude:/node_modules/,include:/.*/,failOnError:!1,allowAsyncCycles:!1,projectCwd:process.cwd()},o)}apply(o){const e=this.options.projectCwd;o.hooks.compilation.tap(PLUGIN_TITLE,(o=>{o.hooks.optimizeModules.tap(PLUGIN_TITLE,(t=>{this.options.onStart&&this.options.onStart({compilation:o});const n=new(Graph.default||Graph);for(const e of t){const t=[];for(const n of e.dependencies){if(n.constructor&&"CommonJsSelfReferenceDependency"===n.constructor.name)continue;let r=null;r=o.moduleGraph?o.moduleGraph.getModule(n):n.module,r&&(r instanceof webpack.NormalModule&&r.resource&&(this.options.allowAsyncCycles&&n.weak||e!==r&&t.push(r.identifier())))}n.add(e.identifier(),t)}const r=n.getCycles();this.isCyclic(r,o,e),this.options.onEnd&&this.options.onEnd({compilation:o})}))}))}isCyclic(o,e,t){o.forEach((o=>{const n=o.slice().reverse().map((o=>{const t=e.findModule(o.name);return t instanceof webpack.NormalModule&&t.resource||null}));if(n.every((o=>!o||this.options.exclude.test(o)||!this.options.include.test(o))))return;const r=n.map((o=>relative(t,o)));if(this.options.onDetected){try{this.options.onDetected({paths:r.concat([r[0]]),compilation:e})}catch(o){e.errors.push(o)}return}const s=new Error(BASE_ERROR.concat(r.concat([r[0]]).join(" -> ")));this.options.failOnError?e.errors.push(s):e.warnings.push(s)}))}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.107",
3
+ "version": "1.8.1-next.108",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,17 +37,17 @@
37
37
  "typecheck": "tsc --project ./tsconfig.json --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@armit/config-loader": "^0.0.53",
41
- "@armit/file-utility": "^0.0.30",
42
- "@armit/git": "^0.0.38",
43
- "@armit/package": "^0.0.47",
44
- "@armit/worker-threads": "^0.0.7",
45
- "@babel/core": "7.22.10",
46
- "@flatjs/common": "1.8.1-next.38",
47
- "@flatjs/evolve-preset-babel": "1.8.1-next.23",
48
- "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.38",
49
- "@flatjs/graph": "1.8.1-next.57",
50
- "@flatjs/mock": "1.8.1-next.81",
40
+ "@armit/config-loader": "^0.0.54",
41
+ "@armit/file-utility": "^0.0.31",
42
+ "@armit/git": "^0.0.39",
43
+ "@armit/package": "^0.0.48",
44
+ "@armit/worker-threads": "^0.0.8",
45
+ "@babel/core": "7.22.17",
46
+ "@flatjs/common": "1.8.1-next.39",
47
+ "@flatjs/evolve-preset-babel": "1.8.1-next.24",
48
+ "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.39",
49
+ "@flatjs/graph": "1.8.1-next.58",
50
+ "@flatjs/mock": "1.8.1-next.82",
51
51
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
52
52
  "@types/babel__core": "7.20.1",
53
53
  "babel-loader": "9.1.3",
@@ -59,7 +59,7 @@
59
59
  "cssnano": "6.0.1",
60
60
  "express": "4.18.2",
61
61
  "fork-ts-checker-webpack-plugin": "8.0.0",
62
- "happy-dom": "10.10.0",
62
+ "happy-dom": "11.0.6",
63
63
  "html-webpack-plugin": "5.5.3",
64
64
  "image-minimizer-webpack-plugin": "3.8.3",
65
65
  "less": "4.2.0",
@@ -67,41 +67,41 @@
67
67
  "listr": "0.14.3",
68
68
  "lodash": "4.17.21",
69
69
  "mini-css-extract-plugin": "2.7.6",
70
- "postcss": "8.4.28",
70
+ "postcss": "8.4.29",
71
71
  "postcss-loader": "7.3.3",
72
72
  "react-refresh": "0.14.0",
73
73
  "svgo": "3.0.2",
74
74
  "tarjan-graph": "3.0.0",
75
75
  "terser-webpack-plugin": "5.3.9",
76
76
  "tsconfig-paths-webpack-plugin": "4.1.0",
77
- "type-fest": "^4.2.0",
77
+ "type-fest": "^4.3.1",
78
78
  "webpack": "5.88.2",
79
- "webpack-bundle-analyzer": "4.9.0",
79
+ "webpack-bundle-analyzer": "4.9.1",
80
80
  "webpack-dev-server": "4.15.1",
81
81
  "webpack-sources": "3.2.3"
82
82
  },
83
83
  "devDependencies": {
84
- "@armit/eslint-config-bases": "^0.0.25",
85
- "@flatjs/testing": "1.8.1-next.41",
86
- "@swc/core": "1.3.77",
84
+ "@armit/eslint-config-bases": "^0.0.26",
85
+ "@flatjs/testing": "1.8.1-next.42",
86
+ "@swc/core": "1.3.84",
87
87
  "@types/express": "4.17.17",
88
- "@types/listr": "0.14.4",
89
- "@types/node": "20.5.0",
90
- "@vitest/coverage-istanbul": "0.34.1",
91
- "@vitest/ui": "0.34.1",
92
- "eslint": "8.47.0",
88
+ "@types/listr": "0.14.5",
89
+ "@types/node": "20.6.0",
90
+ "@vitest/coverage-istanbul": "0.34.4",
91
+ "@vitest/ui": "0.34.4",
92
+ "eslint": "8.49.0",
93
93
  "imagemin-gifsicle": "7.0.0",
94
94
  "imagemin-jpegtran": "7.0.0",
95
95
  "imagemin-pngquant": "9.0.2",
96
96
  "imagemin-svgo": "10.0.1",
97
97
  "npm-run-all": "4.1.5",
98
- "prettier": "3.0.2",
98
+ "prettier": "3.0.3",
99
99
  "react": "18.2.0",
100
100
  "rimraf": "5.0.1",
101
101
  "swc-unplugin-ts": "1.0.2",
102
102
  "ts-node": "10.9.1",
103
- "vite-tsconfig-paths": "4.2.0",
104
- "vitest": "0.34.1",
103
+ "vite-tsconfig-paths": "4.2.1",
104
+ "vitest": "0.34.4",
105
105
  "vue-loader": "17.2.2"
106
106
  },
107
107
  "peerDependencies": {