@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 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 deprecated subpath or an Effect API outside
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
- Three subpaths are deprecated re-exports for one minor release. Each exports
46
- the same values as its replacements, so classes and service tags have one
47
- identity. Each name that a subpath takes from its replacement is marked
48
- `@deprecated`, and the `ci-solution/effect-subpath` lint rule reports the
49
- subpaths. The replacements do not export the types of the sibling SDKs that
50
- the deprecated subpaths kept from 0.1.x: import them from
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
- | Deprecated subpath | Import instead |
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`, `/effect/node-postgres` and `/persistence/drizzle/effect`. The
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 DrizzlePostgres3 extends Context.Service()("@collective-intelligence/external-apps-server-sdk/DrizzlePostgres"){}var layerFromDatabase3=(value)=>Layer.succeed(DrizzlePostgres3,value);import*as Schema from"effect/Schema";class DrizzlePostgresInitializationError3 extends Schema.TaggedError()("DrizzlePostgresInitializationError",{cause:Schema.Defect()}){}
2
- export{makeDatabase,DrizzlePostgres3,layerFromDatabase3,DrizzlePostgresInitializationError3};
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};