@shivaedev/effect-test 0.1.3 → 0.2.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 +7 -0
- package/README.md +2 -2
- package/package.json +7 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/src/index.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 - 2026-10-04
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Breaking: no root entry and no module that re-exports another. `exports` maps one `"./*.ts"` pattern to every module (`src` under the `source` condition, `dist` otherwise), so you import the module that defines a name, and a bundler sees only the modules you use. Where each name now lives:
|
|
8
|
+
- `@shivaedev/effect-test`: `@shivaedev/effect-test/eventually.ts` (`EventuallyOptions`, `eventually`), `@shivaedev/effect-test/types.ts` (`EffectClock`, `EffectTest`, `EffectTester`, `EffectTestOptions`, `MakeEffectItOptions`, `MakeEffectItResult`), `@shivaedev/effect-test/vitest.ts` (`makeEffectIt`)
|
|
9
|
+
|
|
3
10
|
## 0.1.3 - 2026-10-04
|
|
4
11
|
|
|
5
12
|
### Changed
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ pnpm add --save-dev @shivaedev/effect-test @effect/vitest effect vitest
|
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
import { Layer } from "effect"
|
|
24
|
-
import { makeEffectIt } from "@shivaedev/effect-test"
|
|
24
|
+
import { makeEffectIt } from "@shivaedev/effect-test/vitest.ts"
|
|
25
25
|
|
|
26
26
|
const { effectApp } = makeEffectIt({
|
|
27
27
|
layer: TestLive,
|
|
@@ -74,7 +74,7 @@ retrying under either clock. Use `Effect.try(() => expect(...))` when an
|
|
|
74
74
|
assertion failure is intentionally a retryable condition.
|
|
75
75
|
|
|
76
76
|
```ts
|
|
77
|
-
import { eventually } from "@shivaedev/effect-test"
|
|
77
|
+
import { eventually } from "@shivaedev/effect-test/eventually.ts"
|
|
78
78
|
|
|
79
79
|
effectApp("sees a delayed write", function* ({ db }) {
|
|
80
80
|
const row = yield* eventually(db.Job.where({ id }).first(), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/effect-test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Generic Effect Vitest runner with worker-scoped Layers and TestClock",
|
|
5
5
|
"homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/effect-test#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
|
-
"
|
|
27
|
-
"types": "./dist
|
|
28
|
-
"source": "./src
|
|
29
|
-
"import": "./dist
|
|
30
|
-
"default": "./dist
|
|
26
|
+
"./*.ts": {
|
|
27
|
+
"types": "./dist/*.d.ts",
|
|
28
|
+
"source": "./src/*.ts",
|
|
29
|
+
"import": "./dist/*.js",
|
|
30
|
+
"default": "./dist/*.js"
|
|
31
31
|
},
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@effect/vitest": "4.0.0-rc.112",
|
|
42
|
-
"@shivaedev/quality": "0.
|
|
42
|
+
"@shivaedev/quality": "0.9.0",
|
|
43
43
|
"@types/node": "24.10.1",
|
|
44
44
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
45
45
|
"effect": "4.0.0-rc.112",
|
package/dist/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { type EventuallyOptions, eventually } from "./eventually.ts";
|
|
2
|
-
export type { EffectClock, EffectTest, EffectTester, EffectTestOptions, MakeEffectItOptions, MakeEffectItResult, } from "./types.ts";
|
|
3
|
-
export { makeEffectIt } from "./vitest.ts";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrE,YAAY,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,UAAU,EAAE,MAAM,iBAAiB,CAAC;AASrE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/src/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { type EventuallyOptions, eventually } from "./eventually.ts";
|
|
2
|
-
export type {
|
|
3
|
-
EffectClock,
|
|
4
|
-
EffectTest,
|
|
5
|
-
EffectTester,
|
|
6
|
-
EffectTestOptions,
|
|
7
|
-
MakeEffectItOptions,
|
|
8
|
-
MakeEffectItResult,
|
|
9
|
-
} from "./types.ts";
|
|
10
|
-
export { makeEffectIt } from "./vitest.ts";
|