@fastly/expressly 2.3.0 → 2.4.0
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 +21 -5
- package/dist/lib/routing/index.d.ts +2 -1
- package/dist/lib/routing/request/cookie-map.d.ts +0 -1
- package/dist/lib/routing/request/index.d.ts +0 -1
- package/dist/lib/routing/response/headers.d.ts +0 -1
- package/dist/lib/routing/response/index.d.ts +0 -1
- package/dist/lib/routing/response/surrogate-keys.d.ts +0 -1
- package/package.json +14 -23
- package/.nvmrc +0 -1
- package/.yarn/releases/yarn-classic.cjs +0 -147529
- package/.yarnrc.yml +0 -1
- package/test-d/error-test-d.ts +0 -34
- package/test-d/request-test-d.ts +0 -11
- package/test-d/router-test-d.ts +0 -54
- package/tsconfig.json +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## [unreleased]
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
## [2.4.0] - 2026/02/12
|
|
11
|
+
|
|
12
|
+
### Updated
|
|
13
|
+
|
|
14
|
+
- Release to npmjs using updated CI workflow and trusted publishing
|
|
15
|
+
- Update to cookie 1.1.x
|
|
16
|
+
|
|
17
|
+
## [2.1.0] - 2023/10/19
|
|
18
|
+
|
|
19
|
+
### Updated
|
|
20
|
+
|
|
21
|
+
- Delete src/.DS_Store
|
|
22
|
+
|
|
23
|
+
[unreleased]: https://github.com/fastly/expressly/compare/v2.4.0...HEAD
|
|
24
|
+
[2.4.0]: https://github.com/fastly/expressly/compare/v2.1.0...v2.4.0
|
|
25
|
+
[2.1.0]: https://github.com/fastly/expressly/releases/tag/v2.1.0
|
|
@@ -10,7 +10,7 @@ export type EConfig = {
|
|
|
10
10
|
};
|
|
11
11
|
export type CookieOptions = {
|
|
12
12
|
domain?: string;
|
|
13
|
-
encode?: string;
|
|
13
|
+
encode?: (str: string) => string;
|
|
14
14
|
expires?: Date;
|
|
15
15
|
httpOnly?: boolean;
|
|
16
16
|
maxAge?: number;
|
|
@@ -18,5 +18,6 @@ export type CookieOptions = {
|
|
|
18
18
|
priority?: "low" | "medium" | "high";
|
|
19
19
|
sameSite?: "strict" | "lax" | "none" | boolean;
|
|
20
20
|
secure?: boolean;
|
|
21
|
+
partitioned?: boolean;
|
|
21
22
|
};
|
|
22
23
|
export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "PURGE" | "*";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastly/expressly",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Express-style router for Fastly Compute.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,10 +13,19 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsc",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"ci": "npm run build && npm run test",
|
|
17
|
+
"prepack": "npm run ci",
|
|
18
18
|
"test": "tsd"
|
|
19
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/**/*.js",
|
|
22
|
+
"dist/**/*.js.map",
|
|
23
|
+
"dist/**/*.d.ts",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md",
|
|
26
|
+
"CHANGELOG.md",
|
|
27
|
+
"SECURITY.md"
|
|
28
|
+
],
|
|
20
29
|
"keywords": [
|
|
21
30
|
"fastly",
|
|
22
31
|
"compute",
|
|
@@ -29,35 +38,17 @@
|
|
|
29
38
|
"author": "oss@fastly.com",
|
|
30
39
|
"license": "MIT",
|
|
31
40
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^18.18.6",
|
|
33
|
-
"auto": "^11.0.4",
|
|
34
41
|
"husky": "^8.0.3",
|
|
35
42
|
"prettier": "^3.1.1",
|
|
36
|
-
"pretty-quick": "^
|
|
37
|
-
"ts-loader": "^9.5.1",
|
|
43
|
+
"pretty-quick": "^4.2.2",
|
|
38
44
|
"tsd": "^0.30.3",
|
|
39
45
|
"typescript": "^5.3.3"
|
|
40
46
|
},
|
|
41
47
|
"dependencies": {
|
|
42
48
|
"@fastly/js-compute": "^3.7.0",
|
|
43
|
-
"cookie": "^
|
|
49
|
+
"cookie": "^1.1.1",
|
|
44
50
|
"mitt": "^3.0.1",
|
|
45
51
|
"core-js": "^3.35.0",
|
|
46
52
|
"path-to-regexp": "^6.2.1"
|
|
47
|
-
},
|
|
48
|
-
"auto": {
|
|
49
|
-
"baseBranch": "main",
|
|
50
|
-
"plugins": [
|
|
51
|
-
"npm",
|
|
52
|
-
"released"
|
|
53
|
-
],
|
|
54
|
-
"release": {
|
|
55
|
-
"prerelease": true
|
|
56
|
-
},
|
|
57
|
-
"prereleaseBranches": [
|
|
58
|
-
"alpha",
|
|
59
|
-
"beta",
|
|
60
|
-
"main"
|
|
61
|
-
]
|
|
62
53
|
}
|
|
63
54
|
}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
18
|