Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
node:
docker:
- image: cimg/node:18.19
- image: cimg/node:22.14
base:
docker:
- image: cimg/base:stable
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ports:
- port: 4242
tasks:
- before: nvm install 18
- before: nvm install 22
init: yarn install
command: FX_PROFILER_HOST="0.0.0.0" yarn start
- openMode: split-right
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19
22.14
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
image: Visual Studio 2022
clone_depth: 5
environment:
nodejs_version: '18.19'
nodejs_version: '22.14'
platform: x64 # flow needs 64b platforms

branches:
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"private": true,
"engines": {
"node": ">= 18.16 < 19"
"node": ">= 22 < 23"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">= 22 < 23"
},
"packageManager": {
"name": "yarn"
}
},
"scripts": {
"build:clean": "rimraf dist && mkdirp dist",
Expand Down
4 changes: 2 additions & 2 deletions src/test/store/__snapshots__/receive-profile.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Array [
],
Array [
"JSON parsing error:",
[SyntaxError: Unexpected token i in JSON at position 0],
[SyntaxError: Unexpected token 'i', "invalid" is not valid JSON],
],
Array [
"Fetch response:",
Expand Down Expand Up @@ -62,7 +62,7 @@ Array [
],
Array [
"JSON parsing error:",
[SyntaxError: Unexpected token i in JSON at position 0],
[SyntaxError: Unexpected token 'i', "invalid" is not valid JSON],
],
Array [
"Fetch response:",
Expand Down
4 changes: 2 additions & 2 deletions src/test/store/__snapshots__/zipped-profiles.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ exports[`reducer zipFileState will fail when trying to load an invalid profile 1
Array [
Array [
"UnserializationError:",
[SyntaxError: Unexpected token o in JSON at position 1],
[SyntaxError: Unexpected token 'o', "not a profile" is not valid JSON],
],
Array [
"Failed to process the profile in the archive with the following error:",
],
Array [
[Error: Unserializing the profile failed: SyntaxError: Unexpected token o in JSON at position 1],
[Error: Unserializing the profile failed: SyntaxError: Unexpected token 'o', "not a profile" is not valid JSON],
],
]
`;
2 changes: 1 addition & 1 deletion src/test/unit/fetch-source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ describe('fetchSource', function () {
errors: [
{
type: 'BROWSER_API_MALFORMED_RESPONSE',
errorMessage: 'SyntaxError: Unexpected token I in JSON at position 1',
errorMessage: expect.stringMatching(/SyntaxError: Unexpected token/),
},
{
type: 'NO_KNOWN_CORS_URL',
Expand Down