Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ reviews:
request_changes_workflow: false
high_level_summary: true
poem: false
in_progress_fortune: false
review_status: true
review_details: false
auto_review:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and Test
on: [push, pull_request, workflow_dispatch]
on: [pull_request, workflow_dispatch]

jobs:
build-and-test:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
<a href="https://www.npmjs.com/package/@visualbravo/zenstack-cache?activeTab=versions">
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40visualbravo%2Fzenstack-cache/latest">
</a>
<a href="https://www.npmjs.com/package/@visualbravo/zenstack-cache">
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/%40visualbravo%2Fzenstack-cache">
</a>
<a href="https://github.com/visualbravo/zenstack-cache/actions/workflows/build-and-test.yaml?query=branch%3Adev++">
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/visualbravo/zenstack-cache/build-and-test.yaml">
</a>
<a href="https://discord.gg/Ykhr738dUe">
<img alt="Join the ZenStack server" src="https://img.shields.io/discord/1035538056146595961">
<a href="https://discord.gg/2PaRSu7X">
<img alt="Join the ZenStack Cache channel" src="https://img.shields.io/discord/1035538056146595961">
</a>
<a href="https://github.com/visualbravo/zenstack-cache/blob/76a2de03245c26841b04525dd8b424a8799d654c/LICENSE">
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace",
"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"private": "true",
"license": "MIT",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@visualbravo/zenstack-cache",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"repository": "github:visualbravo/zenstack-cache",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"keywords": ["zenstack", "cache", "caching", "prisma", "accelerate", "orm"],
"exports": {
".": {
"@zenstack-cache/source": "./src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/cache/src/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import z from 'zod'

export const cacheOptionsSchema = z.strictObject({
ttl: z.number().min(1).optional(),
swr: z.number().min(1).optional(),
ttl: z.int().positive().optional(),
swr: z.int().positive().optional(),
tags: z.string().array().optional(),
})

Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstack-cache/config",
"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"exports": {
"./ts": "./ts.json"
Expand Down