Skip to content

Commit 824ff4e

Browse files
authored
chore: merge dev to main (1.0.1) (#5)
* fix: swap schema numbers for positive integers (#2) * fix: swap schema numbers for positive integers * Remove redundant `min` call. * chore: update repo configuration (#3) * chore: add in_progress_fortune option to reviews configuration * chore: update trigger events for build and test workflow * chore: add keywords to package.json for better discoverability * chore: update README badges for NPM downloads and Discord channel * chore: bump version to 1.0.1 (#4)
1 parent f57c141 commit 824ff4e

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

.coderabbit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ reviews:
66
request_changes_workflow: false
77
high_level_summary: true
88
poem: false
9+
in_progress_fortune: false
910
review_status: true
1011
review_details: false
1112
auto_review:

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build and Test
2-
on: [push, pull_request, workflow_dispatch]
2+
on: [pull_request, workflow_dispatch]
33

44
jobs:
55
build-and-test:

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
<a href="https://www.npmjs.com/package/@visualbravo/zenstack-cache?activeTab=versions">
1111
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40visualbravo%2Fzenstack-cache/latest">
1212
</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>
1316
<a href="https://github.com/visualbravo/zenstack-cache/actions/workflows/build-and-test.yaml?query=branch%3Adev++">
1417
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/visualbravo/zenstack-cache/build-and-test.yaml">
1518
</a>
16-
<a href="https://discord.gg/Ykhr738dUe">
17-
<img alt="Join the ZenStack server" src="https://img.shields.io/discord/1035538056146595961">
19+
<a href="https://discord.gg/2PaRSu7X">
20+
<img alt="Join the ZenStack Cache channel" src="https://img.shields.io/discord/1035538056146595961">
1821
</a>
1922
<a href="https://github.com/visualbravo/zenstack-cache/blob/76a2de03245c26841b04525dd8b424a8799d654c/LICENSE">
2023
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "workspace",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"private": "true",
66
"license": "MIT",
77
"scripts": {

packages/cache/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "@visualbravo/zenstack-cache",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"license": "MIT",
55
"repository": "github:visualbravo/zenstack-cache",
66
"type": "module",
77
"main": "./dist/index.cjs",
88
"module": "./dist/index.mjs",
99
"types": "./dist/index.d.cts",
10+
"keywords": ["zenstack", "cache", "caching", "prisma", "accelerate", "orm"],
1011
"exports": {
1112
".": {
1213
"@zenstack-cache/source": "./src/index.ts",

packages/cache/src/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import z from 'zod'
22

33
export const cacheOptionsSchema = z.strictObject({
4-
ttl: z.number().min(1).optional(),
5-
swr: z.number().min(1).optional(),
4+
ttl: z.int().positive().optional(),
5+
swr: z.int().positive().optional(),
66
tags: z.string().array().optional(),
77
})
88

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstack-cache/config",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"private": true,
66
"exports": {
77
"./ts": "./ts.json"

0 commit comments

Comments
 (0)