@systemfsoftware/all 1.0.1 → 1.1.0

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,17 @@
1
1
  # @systemfsoftware/all
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - The preset now fails any import of a host builtin specifier — prefixed or unprefixed — and any `@std` module that mirrors a platform service. Consumers must take the corresponding platform service or a Web Standard API instead; the diagnostic names the replacement.
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Re-published against the oxc-based instrumenter: workspace dependency ranges move to the new instrumenter major; no package's own behavior changes in this release.
14
+
3
15
  ## 1.0.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.mjs CHANGED
@@ -51,7 +51,21 @@ const rules = {
51
51
  ...house.configs.recommended.rules,
52
52
  ...cellVocabulary.configs.recommended.rules,
53
53
  ...effectDmmf.configs.recommended.rules,
54
- ...effectEntrypoint.configs.recommended.rules
54
+ ...effectEntrypoint.configs.recommended.rules,
55
+ "no-restricted-imports": ["error", { patterns: [
56
+ {
57
+ regex: "^node:.*",
58
+ message: "Importing Node.js builtins via \"node:\" is forbidden — use \"@effect/platform\" or a Web Standard API (e.g. global URL, fetch, Web Crypto, Web Streams) instead."
59
+ },
60
+ {
61
+ regex: "^(?:assert|async_hooks|buffer|child_process|cluster|console|constants|crypto|dgram|diagnostics_channel|dns|domain|events|fs|http|http2|https|inspector|module|net|os|path|perf_hooks|process|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|trace_events|tty|url|util|v8|vm|wasi|worker_threads|zlib)(?:/.*)?$",
62
+ message: "Importing Node.js builtins without the \"node:\" prefix is forbidden (e.g. \"fs\") — use \"@effect/platform\" or a Web Standard API instead. Even \"node:fs\" is forbidden."
63
+ },
64
+ {
65
+ regex: "^@std/(?:path|fs|encoding|streams|crypto|dotenv)(?:/.*)?$",
66
+ message: "Importing @std modules that mirror @effect/platform services (path, fs, encoding, streams, crypto, dotenv) is forbidden — use the corresponding Effect platform service instead."
67
+ }
68
+ ] }]
55
69
  };
56
70
  /**
57
71
  * Paths that are never source. Build output and generated declarations are the
@@ -89,8 +103,14 @@ const all = {
89
103
  options: { ...options },
90
104
  categories: { correctness: "error" },
91
105
  rules: { ...rules },
92
- overrides: [...overrides],
93
- ignorePatterns: [...ignorePatterns]
106
+ overrides: [...overrides, {
107
+ files: [
108
+ "**/__fixtures__/**",
109
+ "**/fixtures/**",
110
+ "**/testResources/**"
111
+ ],
112
+ rules: { "no-restricted-imports": "off" }
113
+ }]
94
114
  };
95
115
  //#endregion
96
116
  export { all as default, ignorePatterns, plugins, rules };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/all",
3
3
  "license": "Apache-2.0",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -27,23 +27,23 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@systemfsoftware/oxlint-plugin-cell-vocabulary": "^1.2.3",
31
- "@systemfsoftware/oxlint-plugin-effect-dmmf": "^5.0.0",
32
- "@systemfsoftware/oxlint-plugin": "^2.1.2",
33
- "@systemfsoftware/oxlint-plugin-effect-entrypoint": "^1.0.6",
34
- "@systemfsoftware/oxlint-plugin-effect-schema": "^5.0.0",
35
- "@systemfsoftware/oxlint-plugin-effect-workflow": "^4.0.1",
36
- "@systemfsoftware/oxlint-plugin-property-testing": "^1.3.2",
37
- "@systemfsoftware/oxlint-plugin-recommended": "^1.1.3",
38
- "@systemfsoftware/oxlint-plugin-test-hygiene": "^1.1.6",
39
- "@systemfsoftware/oxlint-plugin-test-placement": "^3.2.1"
30
+ "@systemfsoftware/oxlint-plugin": "^2.1.3",
31
+ "@systemfsoftware/oxlint-plugin-effect-schema": "^5.0.1",
32
+ "@systemfsoftware/oxlint-plugin-effect-dmmf": "^5.1.0",
33
+ "@systemfsoftware/oxlint-plugin-effect-entrypoint": "^1.0.7",
34
+ "@systemfsoftware/oxlint-plugin-cell-vocabulary": "^1.2.4",
35
+ "@systemfsoftware/oxlint-plugin-effect-workflow": "^4.1.0",
36
+ "@systemfsoftware/oxlint-plugin-property-testing": "^1.3.3",
37
+ "@systemfsoftware/oxlint-plugin-recommended": "^1.1.4",
38
+ "@systemfsoftware/oxlint-plugin-test-hygiene": "^1.1.7",
39
+ "@systemfsoftware/oxlint-plugin-test-placement": "^3.2.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
43
43
  "@types/node": "^24",
44
44
  "effect": "^4.0.0-rc.112",
45
45
  "oxlint": "^1.77.0",
46
- "oxlint-tsgolint": ">=0.24.0",
46
+ "oxlint-tsgolint": "7.0.2001",
47
47
  "rimraf": "^6.1.3",
48
48
  "tsdown": "^0.22.14",
49
49
  "typescript": "^7",
@@ -53,7 +53,7 @@
53
53
  "peerDependencies": {
54
54
  "effect": "^4.0.0-rc.112",
55
55
  "oxlint": "^1.77.0",
56
- "oxlint-tsgolint": ">=0.24.0",
56
+ "oxlint-tsgolint": "7.0.2001",
57
57
  "typescript": ">=5.0.0"
58
58
  },
59
59
  "publishConfig": {