@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 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
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 SCAYLE GmbH
3
+ Copyright (c) 2024 SCAYLE GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.#store.get(this.#id)) ?? (await this.#generate()).data;
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.4",
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": "prettier --ignore-unknown --log-level warn --check .",
22
- "format:fix": "prettier --ignore-unknown --log-level warn --write .",
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.8.0"
27
+ "h3": "^1.10.0"
28
28
  },
29
29
  "dependencies": {
30
- "defu": "6.1.3",
30
+ "defu": "6.1.4",
31
31
  "uncrypto": "0.1.3",
32
- "unstorage": "1.9.0",
32
+ "unstorage": "1.10.2",
33
33
  "zod": "3.22.4"
34
34
  },
35
35
  "devDependencies": {
36
- "@changesets/types": "5.2.1",
37
- "@scayle/eslint-config-storefront": "3.2.5",
38
- "@scayle/prettier-config-storefront": "2.0.2",
39
- "eslint": "8.52.0",
40
- "eslint-formatter-gitlab": "5.0.0",
41
- "h3": "1.8.2",
42
- "prettier": "3.0.0",
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.9.0"
45
+ "node": "20.12.1"
47
46
  }
48
47
  }