@tollwyn/baukasten 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/README.md +18 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -271,12 +271,23 @@ Its pages, mails, legal texts, variables and migrations stay as they were: a pro
271
271
  variable, and its database stays as it is. A product on 1.x keeps running as it is; it takes 2.0 in
272
272
  one change, a web app and a Shopify app alike:
273
273
 
274
- 1. `npm install --save-exact @tollwyn/baukasten@<version>`, a version from 2.0.0 on, and
275
- `npm install --save-dev @sveltejs/kit@3 @sveltejs/adapter-node@6`, with what SvelteKit 3 needs:
276
- Vite 8, `@sveltejs/vite-plugin-svelte` 7, TypeScript 6 and Svelte from 5.57.1 on.
274
+ 1. One command, with a version from 2.0.0 on:
275
+
276
+ ```sh
277
+ npm install --save-exact @tollwyn/baukasten@<version> @sveltejs/kit@3 @sveltejs/adapter-node@6
278
+ ```
279
+
280
+ The baukasten and adapter-node take SvelteKit as a peer, so npm can move the three only
281
+ together; it keeps each package in the section of `package.json` where the product has it. A
282
+ product below what SvelteKit 3 needs, Vite 8, `@sveltejs/vite-plugin-svelte` 7, TypeScript 6 and
283
+ Svelte from 5.57.1 on, names those in the same command, as it does any other package of its own
284
+ that npm's ERESOLVE names. Coming from `@sveltejs/vite-plugin-svelte` 6, npm resolves it from a
285
+ fresh lockfile: delete `package-lock.json` and `node_modules`, then run the command. The old
286
+ lockfile still holds `@sveltejs/vite-plugin-svelte-inspector`, whose peer range ends at Vite 7.
277
287
  2. The product's own code after the guide of SvelteKit,
278
- https://svelte.dev/docs/kit/migrating-to-sveltekit-3 (`npx sv migrate sveltekit-3` does much of
279
- it). What a product of the baukasten meets there:
288
+ https://svelte.dev/docs/kit/migrating-to-sveltekit-3
289
+ (`npx sv migrate sveltekit-3 --tasks all --confirm --no-install --no-git-check` does much of it;
290
+ without `--tasks` it asks which tasks to run). What a product of the baukasten meets there:
280
291
  - `$lib` becomes `#lib`, imported with the extension of the module (`#lib/texts.js`), and
281
292
  `package.json` maps `"#lib/*": "./src/lib/*"` in `imports`.
282
293
  - `tsconfig.json` extends `$app/tsconfig` and names its own `include`; a `types` of its own names
@@ -289,7 +300,8 @@ one change, a web app and a Shopify app alike:
289
300
  3. `npx --no-install baukasten-stubs` writes the stubs of 2.0, `npx --no-install baukasten-stubs
290
301
  shopify` those of a Shopify app. The product's own `src/lib/server/handle.ts` takes `Handle`
291
302
  from `@sveltejs/kit/hooks`.
292
- 4. An override of `cookie` goes, where the product has one: SvelteKit 3 brings `cookie` 2, which
303
+ 4. An override of `cookie` goes, where the product has one, and a plain `npm install` follows: until
304
+ then the override holds `cookie` where it was. SvelteKit 3 brings `cookie` 2, which
293
305
  GHSA-pxg6-pf52-xh8x does not reach.
294
306
  5. `npx --no-install baukasten-check`, then the gate of the product.
295
307
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tollwyn/baukasten",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "What every product built on this kit shares: configuration, log and server, database with two-layer migrations, health, accounts with sessions and API keys, limits, mail, payment through Stripe, the numbers for sales, the frame and pages, the stubs that hang them into a product and the check of a product, and the tools to test one, its connection test among them; and for a Shopify app its installation with tokens, the frame of the admin, its webhooks, its plan through the Partner API and its privacy text.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",