nukak-sqlite
Advanced tools
Comparing version 0.4.6 to 1.0.0
@@ -7,5 +7,10 @@ # Changelog | ||
## [1.0.0] - 2024-08-10 | ||
- Allow to set a field as non-eager (i.e. lazy) in the entities with `eager: false` (by default all fields are `eager: true`). | ||
- Allow to set a field as non-updatable (i.e. insertable and read-only) in the entities with `updatable: false` (by default all fields are `updatable: true`). | ||
## [0.4.0] - 2023-11-06 | ||
- move project inside query parameter [#63](https://github.com/rogerpadilla/nukak/pull/63) | ||
- Move project inside query parameter [#63](https://github.com/rogerpadilla/nukak/pull/63) | ||
@@ -12,0 +17,0 @@ ## [0.3.3] - 2023-10-25 |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.6", | ||
"version": "1.0.0", | ||
"type": "module", | ||
@@ -19,5 +19,5 @@ "main": "./index.js", | ||
"peerDependencies": { | ||
"nukak": "^0.4.1", | ||
"sqlite": "^4.1.2", | ||
"sqlite3": "^5.1.2" | ||
"sqlite3": "^5.1.2", | ||
"nukak": "^1.0.0" | ||
}, | ||
@@ -28,9 +28,9 @@ "dependencies": { | ||
"devDependencies": { | ||
"@types/node": "^20.11.25", | ||
"@types/node": "^22.2.0", | ||
"@types/sqlite3": "^3.1.11", | ||
"copyfiles": "^2.4.1", | ||
"rimraf": "^5.0.5", | ||
"rimraf": "^6.0.1", | ||
"sqlite": "^5.1.1", | ||
"sqlite3": "^5.1.7", | ||
"typescript": "^5.4.2" | ||
"typescript": "~5.4.5" | ||
}, | ||
@@ -70,3 +70,3 @@ "author": "Roger Padilla", | ||
}, | ||
"gitHead": "293d2169ed15ba4bf23057a6af9c69497f0f5c62" | ||
"gitHead": "a364e3be7d7f4589c99a56ebe21ce00ebe6851e9" | ||
} |
@@ -88,3 +88,3 @@ <!-- ![code](/assets/code.webp 'code') --> | ||
```ts | ||
import { v4 as uuidv4 } from 'uuid'; | ||
import { randomUUID } from 'node:crypto'; | ||
import { Id, Field, Entity } from 'nukak/entity'; | ||
@@ -103,3 +103,3 @@ | ||
*/ | ||
@Id({ onInsert: () => uuidv4() }) | ||
@Id({ onInsert: () => randomUUID }) | ||
id?: string; | ||
@@ -106,0 +106,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
21878
11