Skip to content

Commit 69eae28

Browse files
committed
feat(pkg): add JSR support and refactor constants 🦕
- add Deno configuration with JSR publishing workflow - add query operator constants module with type definitions - export interfaces for type checking - extract operators from Query class to centralized constants - improve nested value handling in update operations - update README with JSR badge and Deno installation
1 parent 9b78719 commit 69eae28

File tree

9 files changed

+292
-182
lines changed

9 files changed

+292
-182
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: denoland/setup-deno@v2
18+
with:
19+
deno-version: v2.5.4
20+
21+
- name: Publish package
22+
run: deno publish

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# Jsonary [![](https://img.shields.io/npm/v/@neabyte/jsonary.svg)](https://www.npmjs.org/package/@neabyte/jsonary) [![Node.js CI](https://github.com/NeaByteLab/Jsonary/actions/workflows/ci.yaml/badge.svg)](https://github.com/NeaByteLab/Jsonary/actions/workflows/ci.yaml)
1+
# Jsonary [![](https://img.shields.io/npm/v/@neabyte/jsonary.svg)](https://www.npmjs.org/package/@neabyte/jsonary) [![JSR](https://jsr.io/badges/@neabyte/jsonary)](https://jsr.io/@neabyte/jsonary) [![Node.js CI](https://github.com/NeaByteLab/Jsonary/actions/workflows/ci.yaml/badge.svg)](https://github.com/NeaByteLab/Jsonary/actions/workflows/ci.yaml)
22

33
A lightweight TypeScript library for file-based JSON database operations with querying capabilities.
44

55
## 📦 Installation
66

77
```bash
8+
# npm
89
npm install @neabyte/jsonary
10+
11+
# deno
12+
deno add jsr:@neabyte/jsonary
913
```
1014

1115
## 🔧 Module Support
@@ -140,4 +144,4 @@ const adminCount = db.where('profile.role = admin').where('profile.verified = tr
140144

141145
## 📄 License
142146

143-
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
147+
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

deno.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@neabyte/jsonary",
3+
"description": "A lightweight TypeScript library for file-based JSON database operations with querying capabilities.",
4+
"version": "1.0.1",
5+
"type": "module",
6+
"license": "MIT",
7+
"exports": "./src/index.ts",
8+
"imports": {
9+
"@root/": "./src/",
10+
"@interfaces/": "./src/interfaces/"
11+
},
12+
"publish": {
13+
"exclude": ["dist/", "node_modules/", "package*.json", "tsconfig.json", "eslint.config.js", "build.config.ts", ".github/", ".prettierignore", ".prettierrc"]
14+
}
15+
}

0 commit comments

Comments
 (0)