@flex-development/when 2.0.0 → 3.0.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/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@flex-development/when",
3
3
  "description": "Chain callbacks on synchronous values or thenables without forcing Promise.resolve or microtasks.",
4
- "version": "2.0.0",
4
+ "version": "3.0.0",
5
5
  "keywords": [
6
- "async",
7
6
  "async",
8
7
  "await",
9
8
  "awaitable",
@@ -56,7 +55,11 @@
56
55
  "when": "./src/index.mts",
57
56
  "default": "./dist/index.mjs"
58
57
  },
59
- "./package.json": "./package.json"
58
+ "./package.json": "./package.json",
59
+ "./testing": {
60
+ "when": "./src/testing/index.mts",
61
+ "default": "./dist/testing/index.mjs"
62
+ }
60
63
  },
61
64
  "imports": {
62
65
  "#fixtures/*": "./__fixtures__/*.mts",
@@ -68,6 +71,10 @@
68
71
  "when": "./src/lib/*.mts",
69
72
  "default": "./dist/lib/*.mjs"
70
73
  },
74
+ "#testing/*": {
75
+ "when": "./src/testing/*.mts",
76
+ "default": "./dist/testing/*.mjs"
77
+ },
71
78
  "#tests/*": "./__tests__/*.mts",
72
79
  "#types/*": {
73
80
  "when": "./src/types/*.mts",
@@ -83,7 +90,7 @@
83
90
  },
84
91
  "scripts": {
85
92
  "build": "yarn clean:build && tsc -p tsconfig.build.json --noEmit false && yarn bundle:dts",
86
- "bundle:dts": "rollup --config=rollup.config.mts && trash dist/{interfaces,types} && trash dist/{internal,lib}/*.d.mts",
93
+ "bundle:dts": "rollup --config=rollup.config.mts && trash dist/**/{interfaces,types} && trash dist/**/lib/*.d.mts",
87
94
  "check:ci": "yarn dedupe --check && yarn check:format && yarn check:lint && yarn check:spelling && yarn typecheck && yarn check:types && yarn test:cov && yarn pack && yarn check:types:build && attw package.tgz && yarn clean:pack",
88
95
  "check:format": "dprint check --incremental=false",
89
96
  "check:lint": "eslint --exit-on-fatal-error --max-warnings 0 .",
@@ -125,6 +132,7 @@
125
132
  "@commitlint/cli": "20.4.2",
126
133
  "@commitlint/types": "20.4.0",
127
134
  "@edge-runtime/vm": "5.0.0",
135
+ "@faker-js/faker": "10.3.0",
128
136
  "@flex-development/commitlint-config": "1.0.1",
129
137
  "@flex-development/eslint-config": "1.1.1",
130
138
  "@flex-development/grease": "3.0.0-alpha.9",
@@ -142,20 +150,20 @@
142
150
  "@vitest/ui": "4.0.18",
143
151
  "concat-stream": "2.0.0",
144
152
  "cross-env": "10.1.0",
145
- "cspell": "9.6.4",
153
+ "cspell": "9.7.0",
146
154
  "devlop": "1.1.0",
147
155
  "dprint": "0.51.1",
148
156
  "editorconfig": "3.0.1",
149
157
  "eslint": "9.39.2",
150
158
  "growl": "1.10.5",
151
- "happy-dom": "20.6.3",
159
+ "happy-dom": "20.7.0",
152
160
  "husky": "9.1.7",
153
161
  "is-ci": "4.1.0",
154
162
  "node-notifier": "10.0.1",
155
163
  "pkg-size": "2.4.0",
156
164
  "remark": "15.0.1",
157
165
  "remark-cli": "12.0.1",
158
- "rollup": "4.57.1",
166
+ "rollup": "4.59.0",
159
167
  "rollup-plugin-dts": "6.3.0",
160
168
  "sh-syntax": "0.5.8",
161
169
  "trash-cli": "7.2.0",