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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: latest
- name: Install dependencies
run: pnpm install
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: pnpm biome:ci
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
version: latest
- run: pnpm install
- run: pnpm build
- run: pnpm publish --no-git-checks --access public
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23
24
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ If using JSON data, leverage the built-in `parseJsonPreprocessor`.
**With Zod:**
```typescript
import { parseJsonPreprocessor } from '@a2lix/schemql'
import { z } from 'zod'
import { z } from 'zod/v4'

export const zUserDb = z.object({
id: z.string(),
Expand Down
42 changes: 26 additions & 16 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"formatter": {
"useEditorconfig": true,
"formatWithErrors": true,
Expand All @@ -11,22 +11,14 @@
"recommended": true,
"complexity": {
"noUselessUndefinedInitialization": "error",
"noBannedTypes": "off"
"noBannedTypes": "off",
"noUselessEscapeInRegex": "error"
},
"correctness": {
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "warn",
"useHookAtTopLevel": "error",
"noConstantCondition": "warn"
},
"nursery": {
"noDuplicateCustomProperties": "error",
"noDynamicNamespaceImportAccess": "error",
"noIrregularWhitespace": "error",
"noUselessEscapeInRegex": "error",
"useTrimStartEnd": "error",
"noDuplicateElseIf": "error"
"noUnusedVariables": "error",
"useHookAtTopLevel": "error"
},
"style": {
"noYodaExpression": "error",
Expand All @@ -37,16 +29,34 @@
"useFilenamingConvention": "error",
"useForOf": "error",
"useFragmentSyntax": "error",
"useShorthandArrayType": "error",
"useNamingConvention": {
"level": "warn",
"options": {
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "objectLiteralMember"
},
"formats": ["camelCase", "snake_case"]
}
]
}
},
"useShorthandAssign": "error",
"useSingleCaseStatement": "error"
"useTrimStartEnd": "error"
},
"suspicious": {
"noDuplicateAtImportRules": "error",
"noEmptyBlock": "error",
"useErrorMessage": "error",
"useAwait": "error",
"noExplicitAny": "warn"
"noDuplicateCustomProperties": "error",
"noIrregularWhitespace": "error",
"noDuplicateElseIf": "error"
},
"performance": {
"noDynamicNamespaceImportAccess": "error"
}
}
},
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@a2lix/schemql",
"version": "0.5.0",
"version": "0.5.1",
"description": "A lightweight TypeScript library that enhances your SQL workflow by combining raw SQL with targeted type safety and schema validation",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -91,16 +91,16 @@
"@standard-schema/spec": "^1.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/node": "^22.14.1",
"arktype": "^2.1.19",
"better-sqlite3": "^11.9.1",
"pkgroll": "^2.12.1",
"@biomejs/biome": "^2.0.2",
"@cloudflare/workers-types": "^4.20250620.0",
"@types/node": "^24.0.3",
"arktype": "^2.1.20",
"better-sqlite3": "^11.10.0",
"pkgroll": "^2.13.1",
"ts-node": "^10.9.2",
"tsx": "^4.19.3",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
"zod": "4.0.0-beta.20250414T061543",
"@cloudflare/workers-types": "^4.20250414.0"
"zod": "^3.25.67"
},
"peerDependencies": {
"@cloudflare/workers-types": "*",
Expand Down
Loading
Loading