@scayle/h3-session 0.3.4 → 0.3.6
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 +12 -0
- package/LICENSE +1 -1
- package/dist/session.js +2 -2
- package/package.json +14 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/h3-session
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Format code with dprint
|
|
8
|
+
|
|
9
|
+
## 0.3.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Update to `h3@1.10.1` (_For detailed changes see [Release Notes for unjs/h3 v1.10.0](https://github.com/unjs/h3/releases/tag/v1.10.0)_)
|
|
14
|
+
|
|
3
15
|
## 0.3.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/LICENSE
CHANGED
package/dist/session.js
CHANGED
|
@@ -18,8 +18,8 @@ export class Session {
|
|
|
18
18
|
await this.#store.set(this.#id, { ...this.data, cookie: this.cookie });
|
|
19
19
|
}
|
|
20
20
|
async reload() {
|
|
21
|
-
this.data =
|
|
22
|
-
(await this.#
|
|
21
|
+
this.data = (await this.#store.get(this.#id)) ??
|
|
22
|
+
(await this.#generate()).data;
|
|
23
23
|
}
|
|
24
24
|
async destroy() {
|
|
25
25
|
// Delete the cookie by setting maxAge to 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/h3-session",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Persistent sessions for h3",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,31 +18,30 @@
|
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "yarn tsc -p tsconfig.json",
|
|
21
|
-
"format": "
|
|
22
|
-
"format:fix": "
|
|
21
|
+
"format": "dprint check",
|
|
22
|
+
"format:fix": "dprint fmt",
|
|
23
23
|
"lint": "eslint . --format gitlab",
|
|
24
24
|
"lint:fix": "eslint . --fix"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"h3": "^1.
|
|
27
|
+
"h3": "^1.10.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"defu": "6.1.
|
|
30
|
+
"defu": "6.1.4",
|
|
31
31
|
"uncrypto": "0.1.3",
|
|
32
|
-
"unstorage": "1.
|
|
32
|
+
"unstorage": "1.10.2",
|
|
33
33
|
"zod": "3.22.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@changesets/types": "
|
|
37
|
-
"@scayle/eslint-config-storefront": "3.2.
|
|
38
|
-
"
|
|
39
|
-
"eslint": "8.
|
|
40
|
-
"eslint-formatter-gitlab": "5.
|
|
41
|
-
"h3": "1.
|
|
42
|
-
"
|
|
43
|
-
"typescript": "5.2.2"
|
|
36
|
+
"@changesets/types": "6.0.0",
|
|
37
|
+
"@scayle/eslint-config-storefront": "3.2.7",
|
|
38
|
+
"dprint": "0.45.1",
|
|
39
|
+
"eslint": "8.57.0",
|
|
40
|
+
"eslint-formatter-gitlab": "5.1.0",
|
|
41
|
+
"h3": "1.11.1",
|
|
42
|
+
"typescript": "5.4.4"
|
|
44
43
|
},
|
|
45
44
|
"volta": {
|
|
46
|
-
"node": "20.
|
|
45
|
+
"node": "20.12.1"
|
|
47
46
|
}
|
|
48
47
|
}
|