tanstack-router-cache 0.1.0 → 0.1.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/README.md +13 -30
- package/dist/index.cjs +1342 -63
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1336 -9
- package/docs/releases.md +26 -0
- package/docs/usage.md +1 -0
- package/package.json +12 -3
package/docs/releases.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Releases
|
|
2
|
+
|
|
3
|
+
This package publishes from GitHub Actions after a version tag is pushed.
|
|
4
|
+
|
|
5
|
+
## Trusted publishing
|
|
6
|
+
|
|
7
|
+
The publish workflow is designed for npm trusted publishing, so the repository does not need a long-lived `NPM_TOKEN`.
|
|
8
|
+
|
|
9
|
+
Configure npm with:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm trust github tanstack-router-cache --repo santiago-ramos-02/tanstack-router-cache --file publish.yml --env npm-publish --allow-publish
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Publishing a version
|
|
16
|
+
|
|
17
|
+
1. Update `version` in `package.json`.
|
|
18
|
+
2. Commit the change.
|
|
19
|
+
3. Tag the same version:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
git tag v0.2.0
|
|
23
|
+
git push origin main --tags
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The workflow checks that the tag matches `package.json` before publishing.
|
package/docs/usage.md
CHANGED
|
@@ -9,3 +9,4 @@ Use these pages for the package API and behavior details.
|
|
|
9
9
|
- [Debugging](./debugging.md): development debug API and snapshots.
|
|
10
10
|
- [Types](./types.md): exported types and cache data shapes.
|
|
11
11
|
- [Architecture](./architecture.md): provider state, router snapshots, rendering flow, events, and memory model.
|
|
12
|
+
- [Releases](./releases.md): GitHub Actions and npm trusted publishing setup.
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tanstack-router-cache",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Route view caching for TanStack Router.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Santiago",
|
|
8
|
+
"homepage": "https://github.com/santiago-ramos-02/tanstack-router-cache#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/santiago-ramos-02/tanstack-router-cache.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/santiago-ramos-02/tanstack-router-cache/issues"
|
|
15
|
+
},
|
|
16
|
+
"packageManager": "bun@1.3.14",
|
|
8
17
|
"keywords": [
|
|
9
18
|
"react",
|
|
10
19
|
"tanstack-router",
|
|
@@ -37,8 +46,8 @@
|
|
|
37
46
|
"build": "bun run clean && rolldown -c && tsc",
|
|
38
47
|
"typecheck": "tsc --noEmit",
|
|
39
48
|
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
40
|
-
"lint": "biome
|
|
41
|
-
"lint:fix": "biome
|
|
49
|
+
"lint": "biome lint src rolldown.config.ts --skip=lint/performance/noBarrelFile --skip=lint/style/useConsistentTypeDefinitions --skip=lint/suspicious/noConsole",
|
|
50
|
+
"lint:fix": "biome lint src rolldown.config.ts --write --skip=lint/performance/noBarrelFile --skip=lint/style/useConsistentTypeDefinitions --skip=lint/suspicious/noConsole",
|
|
42
51
|
"pack:dry-run": "bun pm pack --dry-run",
|
|
43
52
|
"prepack": "bun run build",
|
|
44
53
|
"prepublishOnly": "bun run lint && bun run typecheck"
|