@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 CHANGED
@@ -1,9 +1,25 @@
1
- # v2.1.1 (Thu Oct 19 2023)
1
+ # Changelog
2
2
 
3
- #### ⚠️ Pushed to `main`
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- - Delete src/.DS_Store ([@doramatadora](https://github.com/doramatadora))
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
- #### Authors: 1
8
+ ## [unreleased]
8
9
 
9
- - Dora Militaru ([@doramatadora](https://github.com/doramatadora))
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" | "*";
@@ -1,4 +1,3 @@
1
- /// <reference types="@fastly/js-compute" />
2
1
  export declare class CookieMap extends Map {
3
2
  private headers;
4
3
  constructor(headers: Headers);
@@ -1,4 +1,3 @@
1
- /// <reference types="@fastly/js-compute" />
2
1
  import { CookieMap } from "./cookie-map";
3
2
  import { EConfig } from "..";
4
3
  export declare class ERequest extends Request {
@@ -1,4 +1,3 @@
1
- /// <reference types="@fastly/js-compute" />
2
1
  export declare class EHeaders extends Headers {
3
2
  cookies: Map<string, string>;
4
3
  constructor();
@@ -1,4 +1,3 @@
1
- /// <reference types="@fastly/js-compute" />
2
1
  import { Emitter } from "mitt";
3
2
  import { SurrogateKeys } from "./surrogate-keys";
4
3
  import { EHeaders } from "./headers";
@@ -1,4 +1,3 @@
1
- /// <reference types="@fastly/js-compute" />
2
1
  export declare class SurrogateKeys extends Set {
3
2
  private headers;
4
3
  constructor(headers: Headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastly/expressly",
3
- "version": "2.3.0",
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
- "prepublish": "tsc",
17
- "dev": "tsc --watch",
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": "^3.1.3",
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": "^0.6.0",
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