From 08d680793b7adcb1d39b9d8e3285464ddf5967e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 Aug 2024 03:30:13 +0000 Subject: [PATCH] [ci] release --- .changeset/healthy-papayas-own.md | 5 --- .changeset/witty-sloths-greet.md | 6 ---- examples/request-nanostores/CHANGELOG.md | 8 +++++ examples/request-nanostores/astro.config.ts | 20 +++++------ examples/request-nanostores/package.json | 2 +- .../request-nanostores/src/actions/index.ts | 34 +++++++++---------- examples/request-nanostores/src/cartStore.ts | 16 ++++----- examples/request-nanostores/src/cookies.ts | 30 ++++++++-------- examples/request-nanostores/tsconfig.json | 2 +- examples/request-state/CHANGELOG.md | 9 +++++ examples/request-state/package.json | 2 +- packages/request-nanostores/CHANGELOG.md | 9 +++++ packages/request-nanostores/package.json | 2 +- packages/request-state/CHANGELOG.md | 7 ++++ packages/request-state/package.json | 2 +- packages/request-state/tsconfig.json | 4 +-- 16 files changed, 89 insertions(+), 69 deletions(-) delete mode 100644 .changeset/healthy-papayas-own.md delete mode 100644 .changeset/witty-sloths-greet.md create mode 100644 examples/request-nanostores/CHANGELOG.md diff --git a/.changeset/healthy-papayas-own.md b/.changeset/healthy-papayas-own.md deleted file mode 100644 index c06ac528..00000000 --- a/.changeset/healthy-papayas-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@inox-tools/request-state': patch ---- - -Refactor client state injection to be fully compliant with Web APIs diff --git a/.changeset/witty-sloths-greet.md b/.changeset/witty-sloths-greet.md deleted file mode 100644 index dc562e62..00000000 --- a/.changeset/witty-sloths-greet.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@inox-tools/request-state': patch -'@inox-tools/request-nanostores': patch ---- - -Fixes resolution of runtime modules when integration is a transitive dependency with a strict package manager. diff --git a/examples/request-nanostores/CHANGELOG.md b/examples/request-nanostores/CHANGELOG.md new file mode 100644 index 00000000..a2bfc74d --- /dev/null +++ b/examples/request-nanostores/CHANGELOG.md @@ -0,0 +1,8 @@ +# @example/request-nanostores + +## 0.0.2 + +### Patch Changes + +- Updated dependencies [f84ff80] + - @inox-tools/request-nanostores@0.1.1 diff --git a/examples/request-nanostores/astro.config.ts b/examples/request-nanostores/astro.config.ts index b1bfed0f..a43b43eb 100644 --- a/examples/request-nanostores/astro.config.ts +++ b/examples/request-nanostores/astro.config.ts @@ -6,14 +6,14 @@ import node from '@astrojs/node'; // https://astro.build/config export default defineConfig({ - // Enable many frameworks to support all different kinds of components. - integrations: [preact(), requestNanostores()], - compressHTML: false, - output: 'server', - adapter: node({ - mode: 'standalone', - }), - experimental: { - actions: true, - }, + // Enable many frameworks to support all different kinds of components. + integrations: [preact(), requestNanostores()], + compressHTML: false, + output: 'server', + adapter: node({ + mode: 'standalone', + }), + experimental: { + actions: true, + }, }); diff --git a/examples/request-nanostores/package.json b/examples/request-nanostores/package.json index 5f5531a1..4eb5d066 100644 --- a/examples/request-nanostores/package.json +++ b/examples/request-nanostores/package.json @@ -2,7 +2,7 @@ "name": "@example/request-nanostores", "private": true, "type": "module", - "version": "0.0.1", + "version": "0.0.2", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/examples/request-nanostores/src/actions/index.ts b/examples/request-nanostores/src/actions/index.ts index 0ce575b0..9f86ff56 100644 --- a/examples/request-nanostores/src/actions/index.ts +++ b/examples/request-nanostores/src/actions/index.ts @@ -2,23 +2,23 @@ import { defineAction, z } from 'astro:actions'; import { CART_COOKIE_NAME, cookieOptions, extractCartCookie } from '../cookies'; export const server = { - setCartItem: defineAction({ - input: z.object({ - id: z.string(), - quantity: z.number(), - }), - handler: async (input, ctx) => { - const currentCookie = extractCartCookie(ctx.cookies); + setCartItem: defineAction({ + input: z.object({ + id: z.string(), + quantity: z.number(), + }), + handler: async (input, ctx) => { + const currentCookie = extractCartCookie(ctx.cookies); - const newCookie = { - ...currentCookie, - [input.id]: { - id: input.id, - quantity: input.quantity, - }, - }; + const newCookie = { + ...currentCookie, + [input.id]: { + id: input.id, + quantity: input.quantity, + }, + }; - ctx.cookies.set(CART_COOKIE_NAME, newCookie, cookieOptions(ctx.url)); - }, - }), + ctx.cookies.set(CART_COOKIE_NAME, newCookie, cookieOptions(ctx.url)); + }, + }), }; diff --git a/examples/request-nanostores/src/cartStore.ts b/examples/request-nanostores/src/cartStore.ts index 1c191089..0fb4ae73 100644 --- a/examples/request-nanostores/src/cartStore.ts +++ b/examples/request-nanostores/src/cartStore.ts @@ -20,15 +20,15 @@ export function addCartItem({ id, name, imageSrc }: CartItemDisplayInfo) { const existingEntry = cartItems.get()[id]; const newEntry = existingEntry ? { - ...existingEntry, - quantity: existingEntry.quantity + 1, - } + ...existingEntry, + quantity: existingEntry.quantity + 1, + } : { - id, - name, - imageSrc, - quantity: 1, - }; + id, + name, + imageSrc, + quantity: 1, + }; cartItems.setKey(id, newEntry); diff --git a/examples/request-nanostores/src/cookies.ts b/examples/request-nanostores/src/cookies.ts index d9485c21..6a5af32f 100644 --- a/examples/request-nanostores/src/cookies.ts +++ b/examples/request-nanostores/src/cookies.ts @@ -6,23 +6,23 @@ type CartCookie = Record>; export const CART_COOKIE_NAME = 'cart'; export function cookieOptions(url: URL): AstroCookieSetOptions { - return { - path: '/', - domain: url.hostname, - httpOnly: true, - secure: url.protocol === 'https:', - sameSite: 'lax', - maxAge: 3600, - }; + return { + path: '/', + domain: url.hostname, + httpOnly: true, + secure: url.protocol === 'https:', + sameSite: 'lax', + maxAge: 3600, + }; } export function extractCartCookie(cookies: AstroCookies): CartCookie { - const cookie = cookies.get(CART_COOKIE_NAME); - if (!cookie) return {}; + const cookie = cookies.get(CART_COOKIE_NAME); + if (!cookie) return {}; - try { - return cookie.json(); - } catch { - return {}; - } + try { + return cookie.json(); + } catch { + return {}; + } } diff --git a/examples/request-nanostores/tsconfig.json b/examples/request-nanostores/tsconfig.json index e90c686c..e43d02f7 100644 --- a/examples/request-nanostores/tsconfig.json +++ b/examples/request-nanostores/tsconfig.json @@ -4,4 +4,4 @@ "jsx": "react-jsx", "jsxImportSource": "preact" } -} \ No newline at end of file +} diff --git a/examples/request-state/CHANGELOG.md b/examples/request-state/CHANGELOG.md index f4bb033e..109785f8 100644 --- a/examples/request-state/CHANGELOG.md +++ b/examples/request-state/CHANGELOG.md @@ -1,5 +1,14 @@ # @examples/astro-when +## 0.0.11 + +### Patch Changes + +- Updated dependencies [aae5d97] +- Updated dependencies [f84ff80] + - @inox-tools/request-state@0.1.1 + - @inox-tools/request-nanostores@0.1.1 + ## 0.0.10 ### Patch Changes diff --git a/examples/request-state/package.json b/examples/request-state/package.json index f9d33704..61f1aace 100644 --- a/examples/request-state/package.json +++ b/examples/request-state/package.json @@ -2,7 +2,7 @@ "name": "@example/request-state", "private": true, "type": "module", - "version": "0.0.10", + "version": "0.0.11", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/packages/request-nanostores/CHANGELOG.md b/packages/request-nanostores/CHANGELOG.md index 942b856d..08ef97a7 100644 --- a/packages/request-nanostores/CHANGELOG.md +++ b/packages/request-nanostores/CHANGELOG.md @@ -1,5 +1,14 @@ # @inox-tools/request-nanostores +## 0.1.1 + +### Patch Changes + +- f84ff80: Fixes resolution of runtime modules when integration is a transitive dependency with a strict package manager. +- Updated dependencies [aae5d97] +- Updated dependencies [f84ff80] + - @inox-tools/request-state@0.1.1 + ## 0.1.0 ### Minor Changes diff --git a/packages/request-nanostores/package.json b/packages/request-nanostores/package.json index de08f445..1dc05e87 100644 --- a/packages/request-nanostores/package.json +++ b/packages/request-nanostores/package.json @@ -1,6 +1,6 @@ { "name": "@inox-tools/request-nanostores", - "version": "0.1.0", + "version": "0.1.1", "description": "Make your Nanostores concurrent safe and shared from server to client", "keywords": [ "astro-integration", diff --git a/packages/request-state/CHANGELOG.md b/packages/request-state/CHANGELOG.md index a8210dd2..bacf088f 100644 --- a/packages/request-state/CHANGELOG.md +++ b/packages/request-state/CHANGELOG.md @@ -1,5 +1,12 @@ # @inox-tools/request-state +## 0.1.1 + +### Patch Changes + +- aae5d97: Refactor client state injection to be fully compliant with Web APIs +- f84ff80: Fixes resolution of runtime modules when integration is a transitive dependency with a strict package manager. + ## 0.1.0 ### Minor Changes diff --git a/packages/request-state/package.json b/packages/request-state/package.json index df58c8ef..d7521663 100644 --- a/packages/request-state/package.json +++ b/packages/request-state/package.json @@ -1,6 +1,6 @@ { "name": "@inox-tools/request-state", - "version": "0.1.0", + "version": "0.1.1", "description": "Shared request state between server and client", "keywords": [ "astro-integration", diff --git a/packages/request-state/tsconfig.json b/packages/request-state/tsconfig.json index d29b8ba9..b39cb846 100644 --- a/packages/request-state/tsconfig.json +++ b/packages/request-state/tsconfig.json @@ -2,8 +2,6 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "../../tsconfig.base.json", "compilerOptions": { - "lib": [ - "dom" - ] + "lib": ["dom"] } }