@harlan-zw/nuxt-cloudflare 0.0.18 → 0.2.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 +45 -5
- package/dist/bindings.d.mts +40 -4
- package/dist/bindings.mjs +18 -2
- package/dist/cache.d.mts +69 -0
- package/dist/cache.mjs +38 -0
- package/dist/chunks/binding-types.mjs +7 -13
- package/dist/cli/index.mjs +12 -2
- package/dist/module.d.mts +26 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +73 -20
- package/dist/runtime/server/plugins/runtime-config.d.ts +9 -0
- package/dist/runtime/server/plugins/runtime-config.js +5 -0
- package/dist/runtime/server/plugins/workers-cache.js +84 -8
- package/dist/runtime/server/utils/workers-cache.d.ts +162 -2
- package/dist/runtime/server/utils/workers-cache.js +133 -10
- package/dist/types.d.mts +2 -2
- package/dist/wrangler.d.mts +53 -3
- package/dist/wrangler.mjs +62 -25
- package/package.json +12 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harlan-zw/nuxt-cloudflare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Opinionated Cloudflare deployment defaults and diagnostics for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"./wrangler": {
|
|
48
48
|
"types": "./dist/wrangler.d.mts",
|
|
49
49
|
"import": "./dist/wrangler.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./cache": {
|
|
52
|
+
"types": "./dist/cache.d.mts",
|
|
53
|
+
"import": "./dist/cache.mjs"
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
"main": "./dist/module.mjs",
|
|
@@ -56,6 +60,9 @@
|
|
|
56
60
|
"bindings": [
|
|
57
61
|
"dist/bindings.d.mts"
|
|
58
62
|
],
|
|
63
|
+
"cache": [
|
|
64
|
+
"dist/cache.d.mts"
|
|
65
|
+
],
|
|
59
66
|
"d1": [
|
|
60
67
|
"dist/d1.d.mts"
|
|
61
68
|
],
|
|
@@ -106,17 +113,18 @@
|
|
|
106
113
|
"unbuild": "^3.6.1",
|
|
107
114
|
"vitest": "^4.1.10",
|
|
108
115
|
"wrangler": "^4.120.1",
|
|
109
|
-
"@harlan-zw/nuxt-wide-events": "0.0
|
|
116
|
+
"@harlan-zw/nuxt-wide-events": "^0.1.0"
|
|
110
117
|
},
|
|
111
118
|
"scripts": {
|
|
112
119
|
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build",
|
|
113
120
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
|
|
114
121
|
"lint": "eslint .",
|
|
115
122
|
"lint:fix": "eslint . --fix",
|
|
116
|
-
"test": "pnpm run build && vitest run && pnpm run test:fixture",
|
|
123
|
+
"test": "pnpm run build && vitest run --exclude \"**/*.nitro.test.ts\" && pnpm run test:fixture && pnpm run test:contract",
|
|
117
124
|
"test:fixture": "nuxi prepare tests/fixtures/basic && nuxt typecheck tests/fixtures/basic && nuxt build tests/fixtures/basic && node dist/cli/index.mjs doctor --cwd tests/fixtures/basic",
|
|
118
125
|
"typecheck": "nuxt typecheck && tsc --noEmit -p tsconfig.check.json",
|
|
119
126
|
"test:attw": "attw --pack",
|
|
120
|
-
"test:pack": "rm -rf .pack && pnpm pack --pack-destination .pack && tar -tf .pack/*.tgz"
|
|
127
|
+
"test:pack": "rm -rf .pack && pnpm pack --pack-destination .pack && tar -tf .pack/*.tgz",
|
|
128
|
+
"test:contract": "nuxt build tests/fixtures/cache-contract && vitest run tests/cache-contract.nitro.test.ts"
|
|
121
129
|
}
|
|
122
130
|
}
|