@collective-intelligence/external-apps-server-sdk 0.2.1 → 0.2.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/AGENTS.md +1 -1
- package/README.md +8 -12
- package/dist/chunks/{index-8yk07eg5.js → index-4z962jdh.js} +2 -2
- package/dist/chunks/{index-mp74xvyn.js → index-qe1587f9.js} +3 -3
- package/dist/effect/node-postgres.js +1 -1
- package/dist/effect.d.ts +1 -1
- package/dist/effect.js +1 -1
- package/dist/index.js +1 -1
- package/docs/effect.md +2 -2
- package/package.json +4 -22
- package/skills/server-sdk-move-to-effect/SKILL.md +5 -3
- package/dist/chunks/index-ees2k4z3.js +0 -2
- package/dist/chunks/index-pzge02c9.js +0 -2
- package/dist/persistence/drizzle-effect.d.ts +0 -58
- package/dist/persistence/drizzle-effect.js +0 -1
- package/dist/runtime/effect.d.ts +0 -477
- package/dist/runtime/next.d.ts +0 -526
package/AGENTS.md
CHANGED
|
@@ -37,5 +37,5 @@ Primitives, the Revalidate Route and the Effect services. The package
|
|
|
37
37
|
run when an app caches CI reads with its own tags or revalidates after SDK
|
|
38
38
|
writes by hand.
|
|
39
39
|
- [skills/server-sdk-move-to-effect/SKILL.md](skills/server-sdk-move-to-effect/SKILL.md):
|
|
40
|
-
run when code imports a
|
|
40
|
+
run when code imports a removed subpath or an Effect API outside
|
|
41
41
|
`/effect`.
|
package/README.md
CHANGED
|
@@ -42,24 +42,20 @@ layer of `/effect` ([Write invalidation](#write-invalidation)) and loads
|
|
|
42
42
|
|
|
43
43
|
### Subpath migration
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
`@collective-intelligence/extensions-sdk` or
|
|
45
|
+
**Breaking:** the release after 0.2.0 removes three subpaths. In 0.2.0 each
|
|
46
|
+
was a deprecated re-export of its replacement. An import of a removed subpath
|
|
47
|
+
fails with `ERR_PACKAGE_PATH_NOT_EXPORTED`, and the
|
|
48
|
+
`ci-solution/effect-subpath` lint rule reports it. The replacements do not
|
|
49
|
+
export the types of the sibling SDKs that the removed subpaths kept from
|
|
50
|
+
0.1.x: import them from `@collective-intelligence/extensions-sdk` or
|
|
52
51
|
`@collective-intelligence/external-apps-client-sdk/resources`.
|
|
53
52
|
|
|
54
|
-
|
|
|
53
|
+
| Removed subpath | Import instead |
|
|
55
54
|
| ----------------------------- | ----------------------------------------------------------- |
|
|
56
55
|
| `/runtime/effect` | `/effect` |
|
|
57
56
|
| `/persistence/drizzle/effect` | `/effect`; `layerNodePostgres` from `/effect/node-postgres` |
|
|
58
57
|
| `/runtime/next` | `/next` |
|
|
59
58
|
|
|
60
|
-
`/persistence/drizzle/effect` imports `pg` and `drizzle-orm`, as
|
|
61
|
-
`/effect/node-postgres` does.
|
|
62
|
-
|
|
63
59
|
### Errors
|
|
64
60
|
|
|
65
61
|
The SDK uses the tagged error classes of
|
|
@@ -1433,7 +1429,7 @@ Next.js app with `output: "standalone"` gets them in its output without a
|
|
|
1433
1429
|
bundler with `Module not found`. A bad pool config or a failed migration fails
|
|
1434
1430
|
the layer with `DrizzlePostgresInitializationError`.
|
|
1435
1431
|
`DrizzlePostgres` and `DrizzlePostgresInitializationError` have one identity
|
|
1436
|
-
in `/effect
|
|
1432
|
+
in `/effect` and `/effect/node-postgres`. The
|
|
1437
1433
|
declarations of `/effect` and `/effect/node-postgres` refer to `drizzle-orm`
|
|
1438
1434
|
and `pg` types: an application that type checks with `skipLibCheck: false`
|
|
1439
1435
|
installs `drizzle-orm` and `@types/pg`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as Context from"effect/Context";import*as Layer from"effect/Layer";var makeDatabase=(drizzle,pool)=>drizzle({client:pool});class
|
|
2
|
-
export{makeDatabase,
|
|
1
|
+
import*as Context from"effect/Context";import*as Layer from"effect/Layer";var makeDatabase=(drizzle,pool)=>drizzle({client:pool});class DrizzlePostgres2 extends Context.Service()("@collective-intelligence/external-apps-server-sdk/DrizzlePostgres"){}var layerFromDatabase2=(value)=>Layer.succeed(DrizzlePostgres2,value);import*as Schema from"effect/Schema";class DrizzlePostgresInitializationError2 extends Schema.TaggedError()("DrizzlePostgresInitializationError",{cause:Schema.Defect()}){}
|
|
2
|
+
export{makeDatabase,DrizzlePostgres2,layerFromDatabase2,DrizzlePostgresInitializationError2};
|