|
1 |
| -## 0.5.2 |
| 1 | +## 0.5.3 (2022-09-16) |
2 | 2 |
|
3 |
| -### Fixes |
| 3 | +### Security Fixes |
| 4 | + |
| 5 | +* [CVE-2022-39218](https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-cmr8-5w4c-44v8): |
| 6 | + Fixed `Math.random` and `crypto.getRandomValues` methods to always use sufficiently random values. The previous versions would use a PRNG (pseudorandom number generator) which we would seed with a random value however due to our use of [Wizer](https://github.com/bytecodealliance/wizer), the initial value to seed the PRNG was baked-in to the final WebAssembly module meaning the sequence of numbers generated was predictable for that specific WebAssembly module. The new implementations of both `Math.random` and `crypto.getRandomValues` do not use a PRNG and instead pull random values from WASI (WebAssembly System Interface) libc’s `random_get` function, which is always a sufficiently random value. |
| 7 | + |
| 8 | + An attacker with access to the same WebAssembly module that calls the affected methods could use the fixed seed to predict random numbers generated by these functions. This information could be used to bypass cryptographic security controls, for example to disclose sensitive data encrypted by functions that use these generators. |
| 9 | + |
| 10 | + Developers should update affected modules after applying this patch. Any secrets generated using affected versions should be rotated. Any sensitive ciphertext generated using affected versions should be considered unsafe, e.g. and be deleted or re-generated. |
| 11 | + |
| 12 | +### Fixed |
| 13 | + |
| 14 | +- Updated the Typescript definitions for the `console` methods to indicate that they now accept any number of objects. ([#258](https://github.com/fastly/js-compute-runtime/pull/258)) |
| 15 | + |
| 16 | +- Store the Object-Store key string into a native object to avoid it becoming garbage collected before being used within `ObjectStore.prototype.get` or `ObjectStore.prototype.put` (([381242](https://github.com/fastly/js-compute-runtime/commit/3812425a955e52c2fd7229e762ef3e691cb78745)) |
| 17 | + |
| 18 | + |
| 19 | +## 0.5.2 (2022-09-02) |
| 20 | + |
| 21 | +### Fixed |
4 | 22 |
|
5 | 23 | - Explicitly declare void as the return type for functions which return nothing - this allows our package to work with typescript's `strict:true` option ([#253](https://github.com/fastly/js-compute-runtime/pull/253))
|
6 | 24 |
|
7 |
| -- Declare ambient types for our npm package instead of exports as we do not yet export anythink from the package ([#252](https://github.com/fastly/js-compute-runtime/pull/252)) |
| 25 | +- Declare ambient types for our npm package instead of exports as we do not yet export anything from the package ([#252](https://github.com/fastly/js-compute-runtime/pull/252)) |
8 | 26 |
|
9 | 27 |
|
10 |
| -## 0.5.1 |
| 28 | +## 0.5.1 (2022-08-31) |
11 | 29 |
|
12 |
| -### Fixes |
| 30 | +### Fixed |
13 | 31 |
|
14 | 32 | - Removed `type: "module"` from the @fastly/js-compute package.json file as the package still uses `require`
|
15 | 33 |
|
16 |
| -## 0.5.0 |
| 34 | +## 0.5.0 (2022-08-30) |
17 | 35 |
|
18 | 36 | ### Features
|
19 | 37 |
|
@@ -79,36 +97,41 @@ console.log(request); // outputs `Request: {method: POST, url: https://www.fastl
|
79 | 97 | ```
|
80 | 98 |
|
81 | 99 |
|
82 |
| -### Summary |
| 100 | +### Added |
83 | 101 |
|
84 | 102 | * Implemented ObjectStore and ObjectStoreEntry classes for interacting with Fastly ObjectStore ([#110](https://github.com/fastly/js-compute-runtime/issues/110))
|
85 |
| -* Improved console output for all types ([#204](https://github.com/fastly/js-compute-runtime/issues/204)) |
86 | 103 | * add btoa and atob native implementations ([#227](https://github.com/fastly/js-compute-runtime/issues/227)) ([8b8c31f](https://github.com/fastly/js-compute-runtime/commit/8b8c31fa9ad70337b1060a3242b8e3495ae47df3))
|
87 | 104 |
|
| 105 | +### Changed |
| 106 | + |
| 107 | +* Improved console output for all types ([#204](https://github.com/fastly/js-compute-runtime/issues/204)) |
88 | 108 |
|
89 |
| -## 0.4.0 |
| 109 | +## 0.4.0 (2022-07-28) |
90 | 110 |
|
91 |
| -### Enhancements |
| 111 | +### Added |
92 | 112 |
|
93 | 113 | - Implement the DecompressionStream builtin [`#160`](https://github.com/fastly/js-compute-runtime/pull/160)
|
94 | 114 | - Improve performace of Regular Expression literals via precompilation [`#146`](https://github.com/fastly/js-compute-runtime/pull/146)
|
95 | 115 |
|
96 |
| -### Fixes |
| 116 | +### Fixed |
97 | 117 |
|
98 | 118 | - Calling `tee` on the client request no longer causes the application to hang [`#156`](https://github.com/fastly/js-compute-runtime/pull/156)
|
99 | 119 |
|
100 | 120 | ## 0.3.0 (2022-06-29)
|
101 | 121 |
|
102 |
| -### Enhancements |
| 122 | +### Added |
103 | 123 |
|
104 | 124 | - Implement the CompressionStream builtin
|
105 | 125 | [#84](https://github.com/fastly/js-compute-runtime/pull/84)
|
| 126 | + |
| 127 | +### Changed |
| 128 | + |
106 | 129 | - Removed the requirement for a fastly.toml file to be present when using js-compute-runtimes CLI to compile a WASM file
|
107 | 130 | - **Breaking change:** Removed --skip-pkg argument from js-compute-runtime's CLI
|
108 | 131 | [#108](https://github.com/fastly/js-compute-runtime/pull/108)
|
109 | 132 | - **Breaking change:** Removed `console.trace` method
|
110 | 133 |
|
111 |
| -### Fixes |
| 134 | +### Fixed |
112 | 135 |
|
113 | 136 | - Fix the response error message text
|
114 | 137 | - Throw an error if constructors are called as plain functions
|
|
0 commit comments