@fastly/compute-js-context 0.4.0 → 0.4.1

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
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [unreleased]
9
9
 
10
- ## [0.4.0] - 2025-10-06
10
+ ## [0.4.1] - 2025-10-06
11
11
 
12
12
  ### Changed
13
13
 
@@ -19,6 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  - Initial public release
21
21
 
22
- [unreleased]: https://github.com/fastly/compute-js-context/compare/v0.4.0...HEAD
23
- [0.4.0]: https://github.com/fastly/compute-js-context/compare/v0.2.0...v0.4.0
22
+ [unreleased]: https://github.com/fastly/compute-js-context/compare/v0.4.1...HEAD
23
+ [0.4.1]: https://github.com/fastly/compute-js-context/compare/v0.2.0...v0.4.1
24
24
  [0.2.0]: https://github.com/fastly/compute-js-context/releases/tag/v0.2.0
package/README.md CHANGED
@@ -95,7 +95,7 @@ const bindingsDefs = {
95
95
  } satisfies BindingsDefs; // <-- for full type safety
96
96
 
97
97
  // This is the generated type for your bindings object
98
- type Bindings = BuildBindings<typeof bindingsDefs>;
98
+ type Bindings = ContextProxy<typeof bindingsDefs>;
99
99
 
100
100
  addEventListener('fetch', (event) => event.respondWith(handler(event)));
101
101
  async function handler(event: FetchEvent): Promise<Response> {
@@ -126,7 +126,7 @@ Creates the main immutable `Context`. Each sub-object is a `Proxy` that:
126
126
  - **Returns `undefined`** for names that don’t exist (except for `ENV`, which returns `''`)
127
127
  - **Is not enumerable** by design (don’t rely on `Object.keys`)
128
128
 
129
- ### `buildContextProxy<T>(context: Context, bindingsDefs: T): BuildBindings<T>`
129
+ ### `buildContextProxy<T>(context: Context, bindingsDefs: T): ContextProxy<T>`
130
130
 
131
131
  Creates a custom, strongly-typed proxy object based on your definitions.
132
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-context",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Surfaces Fastly Compute environment as a context object",
5
5
  "license": "MIT",
6
6
  "repository": {