Repository navigation
Upgrade to Alchemy beta 84: a Composer app installs 473 MB instead of 1.6 GB - #402
Conversation
Alchemy beta 84 moved each provider into its own package. Composer now imports the Prisma provider from @alchemy.run/prisma instead of alchemy/Prisma. A Composer app installs 512 MB instead of 1.6 GB. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… docs Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ner checks Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
✅ Gizmo reviewed c6d5c4c — posted 0 inline comment(s) this pass. Open findings: none Change walkthroughThis PR upgrades Composer from Alchemy 2.0.0-beta.83 to beta.84, which split each cloud provider out of the Dependency surface. Source changes. All imports move from Guardrails. Merge with main. The head also merges main's module-input work; in every file touched by both changes (package.jsons, local-target compute and tests, descriptors, skills, ADR index, deferred items), the beta.84/4.0.5 bumps and renamed imports sit alongside main's config-pool and dotenv additions. Remaining size caveats ( |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
commit: |
…int-composer-707907 Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> # Conflicts: # .drive/deferred.md # docs/design/90-decisions/README.md # packages/1-prisma-cloud/0-lowering/local-target/src/compute.ts # packages/9-public/composer/package.json # pnpm-lock.yaml # test/integration/package.json
…anch Keep our catalog pins (alchemy and @alchemy.run/prisma 2.0.0-beta.85, @distilled.cloud/prisma 1.0.0-rc.18, effect 4.1.0) and scratch-stack test imports. Take #402's footprint check (no @effect/vitest, vitest or vite; no @alchemy.run/prisma without the Prisma Cloud package), its process-listener check on the provider import, its ADR-0048 amendment and its effect-family pin rule in the upgrade skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
A new Composer app now installs about a third of what it did:
npm installof@prisma/composer+@prisma/composer-cli@prisma/composer-prisma-cloudWhat changed
Alchemy 2.0.0-beta.84 moved each cloud provider out of the
alchemypackage into its own package.alchemyitself went from 143 MB to 6 MB, because it no longer carries AWS, GCP, Cloudflare and the rest. Composer upgrades to it:@alchemy.run/prisma, in lockstep withalchemy. Only@prisma/composer-prisma-cloudand the Prisma Cloud packages it bundles depend on it.@prisma/composerand@prisma/composer-clidepend onalchemyalone. The resource type IDs (Prisma.*) did not change, so existing deploy state carries over.effectand its companions 4.0.3 → 4.0.5. Beta 84 requires^4.0.5and was built on 4.0.5.@distilled.cloud/prismamoves to rc.17, the exact version the provider uses, so npm installs one copy.@prisma/composer:@effect/sql-d1,@effect/sql-sqlite-doand@effect/vitest. Composer pinned them because beta 83 depended on the two SQL packages; beta 84 no longer does, and@effect/vitestis an optional peer that onlyalchemy/Test/Vitestloads. Nothing in Composer or Alchemy loads any of them at runtime. Dropping@effect/vitestalso removesvitestandvitefrom every install.check:npm-effect-resolutionnow fails if an install containsvite,vitestor@effect/vitest; if the Prisma provider is installed without the Prisma Cloud package; or if there is more than one@distilled.cloud/prisma. It also fails if importing the Prisma provider adds a process signal listener. I confirmed the footprint check fails when the@effect/vitestpin is put back.check:family-static-graphnow also forbids static@alchemy.run/*imports from the CLI's start-up graph.@alchemy.run/prisma.skills-contrib/upgrade-alchemy-effectnow states one pin rule: pin exactly everyeffect-family package a consumer's install will contain, and nothing else.What is still large
@distilled.cloud/aws(143 MB).@alchemy.run/prismadepends on it only for its S3 bucket bindings, which Composer never calls. Composer cannot remove it for users, because npmoverridesonly work in the user's own app. A small Prisma Cloud bucket client is being prepared for Alchemy upstream; with it, an app would install about 330 MB.@prisma/dev(about 25 MB): the provider wants^0.20.0, Composer^0.25.2. Same as on beta 83.@prisma/composer-prisma-clouditself is 45 MB, mostly source maps and a 24 MBauth/testingbundle. That is Composer's own packaging.All three are recorded in
.drive/deferred.md.Verification
pnpm typecheck: 80 of 80 tasks pass.check:npm-effect-resolutionandcheck:family-static-graphpass.alchemyand@alchemy.run/prismaregisters no SIGINT or SIGTERM listeners.Alternatives considered
@distilled.cloud/awsin Composer. Not possible from a library; the fix belongs in the provider.Agent: saruman-67
🤖 Generated with Claude Code