Skip to content

Commit 46551f1

Browse files
Merge pull request #20 from fingerprintjs/rc
Release v0.2.1-rc.1
2 parents a048cc0 + eb57cf7 commit 46551f1

File tree

9 files changed

+26
-23
lines changed

9 files changed

+26
-23
lines changed

.releaserc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
{
4949
"assets":[
5050
{
51-
"path":"pkg/package.tar.gz",
52-
"label":"fingerprint-proxy-integration.tar.gz"
51+
"path":"pkg/fingerprint-fastly-compute-proxy-integration.tar.gz",
52+
"label":"fingerprint-fastly-compute-proxy-integration.tar.gz"
5353
}
5454
]
5555
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [0.2.1-rc.1](https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration/compare/v0.2.0...v0.2.1-rc.1) (2024-11-14)
2+
3+
4+
### Bug Fixes
5+
6+
* change release artifact name ([a3d44da](https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration/commit/a3d44da4628930f73f5d0d87d3f64ee0d20b8ca4))
7+
* move plugins to the next tick of event loop ([6a3d554](https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration/commit/6a3d5547ad9c928b436431c5b4212abf473f4c1b))
8+
19
## [0.2.0](https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration/compare/v0.1.0...v0.2.0) (2024-11-11)
210

311

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To use a custom name prefix for both stores, use the `STORE_NAME_PREFIX` environ
8484
STORE_NAME_PREFIX=CustomName pnpm run build
8585
```
8686

87-
Your custom built package in `pkg/package.tar.gz` will use your custom prefix in store names like:
87+
Your custom built package in `pkg/fingerprint-fastly-compute-proxy-integration.tar.gz` will use your custom prefix in store names like:
8888

8989
* `CustomName_Config_Store_<SERVICE_ID>`
9090
* `CustomName_Secret_Store_<SERVICE_ID>`

contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
We prefer using [pnpm](https://pnpm.io/) for managing dependencies and running scripts.
1212

13-
For proposing changes, use the standard [pull request approach](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). It’s recommended to discuss fixes or new features in the Issues first.
14-
1513
- The `main` branch is locked for direct pushes.
1614
- The `rc` branch is used for active development of new features.
1715
- Releases are created from the `main` branch.
1816

17+
For proposing changes, use the standard [pull request approach](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). Please ensure that your pull request is directed to the `rc` branch, as this is our active development branch for new features. You can create a PR to the `rc` branch from your own branch [here](https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration/compare/rc...). It’s recommended to discuss fixes or new features in the Issues first.
18+
1919
### How to Build
2020

2121
1. After cloning the repository, run `pnpm install` to install dependencies.

fastly.toml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
# This file describes a Fastly Compute package. To learn more visit:
22
# https://developer.fastly.com/reference/fastly-toml/
33

4-
authors = []
5-
cloned_from = "https://github.com/fastly/compute-starter-kit-typescript"
4+
authors = ["[email protected]"]
5+
cloned_from = "https://github.com/fingerprintjs/fingerprint-pro-fastly-compute-proxy-integration"
66
description = "Fingerprint Proxy Fastly Compute Package"
77
language = "javascript"
88
manifest_version = 3
9-
name = "fingerprint-pro-fastly-proxy-integration"
9+
name = "fingerprint-fastly-compute-proxy-integration"
1010
service_id = ""
1111

1212
[scripts]
1313
build = "pnpm build"
1414
post_init = "pnpm install"
15-
16-
#[local_server]
17-
# [local_server.backends]
18-
# [local_server.backends.fpcdn]
19-
# url = "http://localhost:1234"
20-
# [local_server.backends.fpjs]
21-
# url = "http://localhost:1234"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fingerprint-pro-fastly-compute-proxy-integration",
3-
"version": "0.2.0",
3+
"version": "0.2.1-rc.1",
44
"engines": {
55
"node": ">=20"
66
},
@@ -41,7 +41,7 @@
4141
"scripts": {
4242
"prebuild": "ts-node build.ts",
4343
"assemble": "js-compute-runtime build/index.js bin/main.wasm",
44-
"pack": "fastly compute pack --wasm-binary=./bin/main.wasm",
44+
"pack": "fastly compute pack --wasm-binary=./bin/main.wasm && mv pkg/package.tar.gz pkg/fingerprint-fastly-compute-proxy-integration.tar.gz",
4545
"build": "pnpm run prebuild && pnpm run assemble && pnpm run pack",
4646
"deploy": "fastly compute publish",
4747
"dev": "fastly compute serve",

scripts/api/deployPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export async function deployPackage(service_id: string, versionId: number) {
55
return createClient('package').putPackage({
66
version_id: versionId,
77
service_id,
8-
_package: fs.createReadStream(__dirname + '/../../pkg/fingerprint-pro-fastly-proxy-integration.tar.gz'),
8+
_package: fs.createReadStream(__dirname + '/../../pkg/fingerprint-fastly-compute-proxy-integration.tar.gz'),
99
})
1010
}

src/handlers/handleIngressAPI.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ async function makeIngressRequest(receivedRequest: Request, env: IntegrationEnv)
3030

3131
if (!isOpenClientResponseEnabled(env)) {
3232
console.log(
33-
"Open client response plugings are disabled. Set OPEN_CLIENT_RESPONSE_PLUGINS_ENABLED to `true` in your proxy integration's Config store to enable them."
33+
"Open client response plugins are disabled. Set OPEN_CLIENT_RESPONSE_PLUGINS_ENABLED to `true` in your proxy integration's Config store to enable them."
3434
)
3535
return response
3636
}
3737

3838
console.log('Plugin system for Open Client Response is enabled')
3939
if (response.status >= 200 && response.status < 300) {
4040
const responseBody = await response.text()
41-
processOpenClientResponse(responseBody, response, env).catch((e) =>
42-
console.error('Processing open client response failed: ', e)
43-
)
41+
Promise.resolve().then(() => {
42+
processOpenClientResponse(responseBody, response, env).catch((e) =>
43+
console.error('Processing open client response failed: ', e)
44+
)
45+
})
4446
return cloneFastlyResponse(responseBody, response)
4547
}
4648

src/handlers/handleStatusPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function createEnvVarsInformationElement(env: IntegrationEnv): string {
110110
result += `
111111
<span>
112112
${configuration.isSet ? '✅' : '⚠️'} <strong>${configuration.label} </strong> (${configuration.required ? 'REQUIRED' : 'OPTIONAL'}) is${!configuration.isSet ? ' not ' : ' '}set
113-
${!configuration.isSet && configuration.message ? `<span>${configuration.message}</span>` : ''}
113+
${configuration.required && !configuration.isSet && configuration.message ? `<span>${configuration.message}</span>` : ''}
114114
</span>
115115
`
116116
}

0 commit comments

Comments
 (0)