@visualbravo/zenstack-cache 1.0.0 → 1.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.
- package/README.md +5 -2
- package/dist/schemas.cjs +2 -2
- package/dist/schemas.d.cts +4 -4
- package/dist/schemas.d.mts +4 -4
- package/dist/schemas.mjs +2 -2
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/@visualbravo/zenstack-cache?activeTab=versions">
|
|
11
11
|
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40visualbravo%2Fzenstack-cache/latest">
|
|
12
12
|
</a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/@visualbravo/zenstack-cache">
|
|
14
|
+
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/%40visualbravo%2Fzenstack-cache">
|
|
15
|
+
</a>
|
|
13
16
|
<a href="https://github.com/visualbravo/zenstack-cache/actions/workflows/build-and-test.yaml?query=branch%3Adev++">
|
|
14
17
|
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/visualbravo/zenstack-cache/build-and-test.yaml">
|
|
15
18
|
</a>
|
|
16
|
-
<a href="https://discord.gg/
|
|
17
|
-
<img alt="Join the ZenStack
|
|
19
|
+
<a href="https://discord.gg/2PaRSu7X">
|
|
20
|
+
<img alt="Join the ZenStack Cache channel" src="https://img.shields.io/discord/1035538056146595961">
|
|
18
21
|
</a>
|
|
19
22
|
<a href="https://github.com/visualbravo/zenstack-cache/blob/76a2de03245c26841b04525dd8b424a8799d654c/LICENSE">
|
|
20
23
|
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green">
|
package/dist/schemas.cjs
CHANGED
|
@@ -4,8 +4,8 @@ zod = require_rolldown_runtime.__toESM(zod);
|
|
|
4
4
|
|
|
5
5
|
//#region src/schemas.ts
|
|
6
6
|
const cacheOptionsSchema = zod.default.strictObject({
|
|
7
|
-
ttl: zod.default.
|
|
8
|
-
swr: zod.default.
|
|
7
|
+
ttl: zod.default.int().positive().optional(),
|
|
8
|
+
swr: zod.default.int().positive().optional(),
|
|
9
9
|
tags: zod.default.string().array().optional()
|
|
10
10
|
});
|
|
11
11
|
const cacheEnvelopeSchema = zod.default.object({ cache: cacheOptionsSchema.optional() });
|
package/dist/schemas.d.cts
CHANGED
|
@@ -2,14 +2,14 @@ import z from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/schemas.d.ts
|
|
4
4
|
declare const cacheOptionsSchema: z.ZodObject<{
|
|
5
|
-
ttl: z.ZodOptional<z.
|
|
6
|
-
swr: z.ZodOptional<z.
|
|
5
|
+
ttl: z.ZodOptional<z.ZodInt>;
|
|
6
|
+
swr: z.ZodOptional<z.ZodInt>;
|
|
7
7
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
declare const cacheEnvelopeSchema: z.ZodObject<{
|
|
10
10
|
cache: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
ttl: z.ZodOptional<z.
|
|
12
|
-
swr: z.ZodOptional<z.
|
|
11
|
+
ttl: z.ZodOptional<z.ZodInt>;
|
|
12
|
+
swr: z.ZodOptional<z.ZodInt>;
|
|
13
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
14
|
}, z.core.$strict>>;
|
|
15
15
|
}, z.core.$strip>;
|
package/dist/schemas.d.mts
CHANGED
|
@@ -2,14 +2,14 @@ import z from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/schemas.d.ts
|
|
4
4
|
declare const cacheOptionsSchema: z.ZodObject<{
|
|
5
|
-
ttl: z.ZodOptional<z.
|
|
6
|
-
swr: z.ZodOptional<z.
|
|
5
|
+
ttl: z.ZodOptional<z.ZodInt>;
|
|
6
|
+
swr: z.ZodOptional<z.ZodInt>;
|
|
7
7
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
declare const cacheEnvelopeSchema: z.ZodObject<{
|
|
10
10
|
cache: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
ttl: z.ZodOptional<z.
|
|
12
|
-
swr: z.ZodOptional<z.
|
|
11
|
+
ttl: z.ZodOptional<z.ZodInt>;
|
|
12
|
+
swr: z.ZodOptional<z.ZodInt>;
|
|
13
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
14
|
}, z.core.$strict>>;
|
|
15
15
|
}, z.core.$strip>;
|
package/dist/schemas.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import z from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/schemas.ts
|
|
4
4
|
const cacheOptionsSchema = z.strictObject({
|
|
5
|
-
ttl: z.
|
|
6
|
-
swr: z.
|
|
5
|
+
ttl: z.int().positive().optional(),
|
|
6
|
+
swr: z.int().positive().optional(),
|
|
7
7
|
tags: z.string().array().optional()
|
|
8
8
|
});
|
|
9
9
|
const cacheEnvelopeSchema = z.object({ cache: cacheOptionsSchema.optional() });
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visualbravo/zenstack-cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "github:visualbravo/zenstack-cache",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.mjs",
|
|
9
9
|
"types": "./dist/index.d.cts",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"zenstack",
|
|
12
|
+
"cache",
|
|
13
|
+
"caching",
|
|
14
|
+
"prisma",
|
|
15
|
+
"accelerate",
|
|
16
|
+
"orm"
|
|
17
|
+
],
|
|
10
18
|
"exports": {
|
|
11
19
|
".": {
|
|
12
20
|
"@zenstack-cache/source": "./src/index.ts",
|