@20baht/elysia-idempotency 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @20baht/elysia-idempotency changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
Every entry has a `default` condition beside `import`, so a loader that `require`s it finds it: drizzle-kit reads a
|
|
6
|
+
schema that imports `idempotencyTable` / `sqliteIdempotencyTable` that way, and failed with
|
|
7
|
+
`ERR_PACKAGE_PATH_NOT_EXPORTED` (found moving bearfee onto the package).
|
|
8
|
+
|
|
3
9
|
## 0.1.0
|
|
4
10
|
|
|
5
11
|
First release (NOTES 2026-11-24). `idempotency({ store, scope })` and the route option `idempotent` (`true` or
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20baht/elysia-idempotency",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Idempotency-Key for Elysia routes: a retried POST gets the first response back instead of writing twice. Keys kept in memory, Postgres or SQLite (D1) through drizzle-orm, or a store of your own.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.js"
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
14
15
|
},
|
|
15
16
|
"./pg": {
|
|
16
17
|
"types": "./dist/pg.d.ts",
|
|
17
|
-
"import": "./dist/pg.js"
|
|
18
|
+
"import": "./dist/pg.js",
|
|
19
|
+
"default": "./dist/pg.js"
|
|
18
20
|
},
|
|
19
21
|
"./sqlite": {
|
|
20
22
|
"types": "./dist/sqlite.d.ts",
|
|
21
|
-
"import": "./dist/sqlite.js"
|
|
23
|
+
"import": "./dist/sqlite.js",
|
|
24
|
+
"default": "./dist/sqlite.js"
|
|
22
25
|
},
|
|
23
26
|
"./package.json": "./package.json"
|
|
24
27
|
},
|