@ts-pf/astro 0.6.1 → 1.0.0
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/README.md +1 -1
- package/package.json +8 -8
- package/skills/ts-pf-astro/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Opt-in Astro endpoint and in-process page caller for ts-pf. A thin shell around
|
|
|
4
4
|
|
|
5
5
|
Agent skill: [`skills/ts-pf-astro/`](skills/ts-pf-astro/). Sync with `npx skills experimental_sync -y`.
|
|
6
6
|
|
|
7
|
-
The package root (`@ts-pf/astro`) exports the client helpers (`createAstroClient`, `withBase`). Server helpers are `@ts-pf/astro/server`. Requires **astro
|
|
7
|
+
The package root (`@ts-pf/astro`) exports the client helpers (`createAstroClient`, `withBase`). Server helpers are `@ts-pf/astro/server`. Requires **astro 7** (`>=7.0.0 <8`). The app also imports `@ts-pf/contract`, `@ts-pf/server`, `@ts-pf/server-http`, `@ts-pf/client`, and `@ts-pf/client-http`; declare them on the same major as `@ts-pf/astro` (every `@ts-pf/*` package releases on one version). Pass `import.meta.env.BASE_URL` through `withBase` from app source. This package does not read it.
|
|
8
8
|
|
|
9
9
|
## Endpoint
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-pf/astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Opt-in Astro endpoint and in-process page caller for ts-pf",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ts-pf",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"lint": "biome check src tests"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@ts-pf/client": "0.
|
|
59
|
-
"@ts-pf/client-http": "0.
|
|
60
|
-
"@ts-pf/contract": "0.
|
|
61
|
-
"@ts-pf/protocol": "0.
|
|
62
|
-
"@ts-pf/server": "0.
|
|
63
|
-
"@ts-pf/server-http": "0.
|
|
58
|
+
"@ts-pf/client": "^1.0.0",
|
|
59
|
+
"@ts-pf/client-http": "^1.0.0",
|
|
60
|
+
"@ts-pf/contract": "^1.0.0",
|
|
61
|
+
"@ts-pf/protocol": "^1.0.0",
|
|
62
|
+
"@ts-pf/server": "^1.0.0",
|
|
63
|
+
"@ts-pf/server-http": "^1.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"astro": ">=7.0.0"
|
|
66
|
+
"astro": ">=7.0.0 <8"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"astro": "^7.4.10",
|
|
@@ -7,7 +7,7 @@ description: "Use when serving a ts-pf API from an Astro endpoint or calling it
|
|
|
7
7
|
|
|
8
8
|
Opt-in Astro endpoint and in-process page caller. Thin shell around `FetchHandler` and `createClient`. Not an integration, middleware mount, or Astro Actions adapter.
|
|
9
9
|
|
|
10
|
-
Install: `npm i @ts-pf/astro
|
|
10
|
+
Install: `npm i @ts-pf/astro@^<major>` (`<major>` = the major of your other `@ts-pf/*` packages; peer **astro 7** (`>=7.0.0 <8`)). The app also imports `@ts-pf/contract`, `@ts-pf/server`, `@ts-pf/server-http`, `@ts-pf/client`, and `@ts-pf/client-http` directly, so it declares them too, on the same major as `@ts-pf/astro` (every `@ts-pf/*` package releases on one version; `^` ranges keep one copy within a major).
|
|
11
11
|
|
|
12
12
|
Link for agents: `npx skills experimental_sync -y`
|
|
13
13
|
|