@thi.ng/server 0.12.4 → 0.12.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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-08-06T18:02:31Z
3
+ - **Last updated**: 2025-09-25T11:10:32Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -11,6 +11,19 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [0.12.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/server@0.12.6) (2025-09-25)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - update cacheControl() ([21b48a4](https://github.com/thi-ng/umbrella/commit/21b48a4))
19
+ - don't set field if its value is false
20
+
21
+ ### [0.12.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/server@0.12.5) (2025-09-01)
22
+
23
+ #### ♻️ Refactoring
24
+
25
+ - fix type import ([8e90657](https://github.com/thi-ng/umbrella/commit/8e90657))
26
+
14
27
  ## [0.12.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/server@0.12.0) (2025-08-04)
15
28
 
16
29
  #### 🚀 Features
package/README.md CHANGED
@@ -164,7 +164,7 @@ For Node.js REPL:
164
164
  const ser = await import("@thi.ng/server");
165
165
  ```
166
166
 
167
- Package sizes (brotli'd, pre-treeshake): ESM: 6.33 KB
167
+ Package sizes (brotli'd, pre-treeshake): ESM: 6.34 KB
168
168
 
169
169
  ## Dependencies
170
170
 
@@ -1,4 +1,4 @@
1
- import type { Interceptor } from "../api";
1
+ import type { Interceptor } from "../api.js";
2
2
  export interface CacheControlOpts {
3
3
  maxAge: number;
4
4
  sMaxAge: number;
@@ -10,7 +10,7 @@ const cacheControl = (opts = {}) => {
10
10
  acc.push("s-maxage=" + v);
11
11
  break;
12
12
  default:
13
- acc.push(kebab(k));
13
+ if (v) acc.push(kebab(k));
14
14
  }
15
15
  }
16
16
  const value = acc.join(", ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/server",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "description": "Minimal HTTP server with declarative routing, static file serving and freely extensible via pre/post interceptors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,25 +39,25 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.1",
43
- "@thi.ng/arrays": "^2.13.10",
44
- "@thi.ng/cache": "^2.3.48",
45
- "@thi.ng/checks": "^3.7.17",
46
- "@thi.ng/errors": "^2.5.41",
47
- "@thi.ng/file-io": "^2.2.8",
48
- "@thi.ng/leaky-bucket": "^0.2.13",
49
- "@thi.ng/logger": "^3.1.16",
50
- "@thi.ng/mime": "^2.7.17",
51
- "@thi.ng/paths": "^5.2.20",
52
- "@thi.ng/router": "^4.1.40",
53
- "@thi.ng/strings": "^3.9.21",
54
- "@thi.ng/timestamp": "^1.1.20",
55
- "@thi.ng/uuid": "^1.1.32"
42
+ "@thi.ng/api": "^8.12.2",
43
+ "@thi.ng/arrays": "^2.13.11",
44
+ "@thi.ng/cache": "^2.3.50",
45
+ "@thi.ng/checks": "^3.7.18",
46
+ "@thi.ng/errors": "^2.5.42",
47
+ "@thi.ng/file-io": "^2.2.9",
48
+ "@thi.ng/leaky-bucket": "^0.2.14",
49
+ "@thi.ng/logger": "^3.1.17",
50
+ "@thi.ng/mime": "^2.7.18",
51
+ "@thi.ng/paths": "^5.2.21",
52
+ "@thi.ng/router": "^4.1.41",
53
+ "@thi.ng/strings": "^3.9.22",
54
+ "@thi.ng/timestamp": "^1.1.21",
55
+ "@thi.ng/uuid": "^1.1.33"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "^24.1.0",
59
- "esbuild": "^0.25.8",
60
- "typedoc": "^0.28.9",
58
+ "@types/node": "^24.3.0",
59
+ "esbuild": "^0.25.9",
60
+ "typedoc": "^0.28.12",
61
61
  "typescript": "^5.9.2"
62
62
  },
63
63
  "keywords": [
@@ -167,5 +167,5 @@
167
167
  "status": "alpha",
168
168
  "year": 2024
169
169
  },
170
- "gitHead": "f6ebc1302dc9211d588293aa0897173c6e54f4e5\n"
170
+ "gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
171
171
  }