Skip to content

Commit 115118c

Browse files
authored
chore: v1.20.2 release (#6968)
2 parents 3859741 + 810f4a5 commit 115118c

36 files changed

+216
-155
lines changed

.github/workflows/benchmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 22
36+
node-version: 22.4
3737
check-latest: true
3838
cache: yarn
3939
- name: Node.js version

.github/workflows/binaries.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
sudo apt-get install -y build-essential python3
4343
- uses: "./.github/actions/setup-and-build"
4444
with:
45-
node: 22
45+
node: 22.4
4646
- run: |
4747
mkdir -p dist
4848
yarn global add [email protected]

.github/workflows/docs-check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
19-
cache: yarn
18+
node-version: 22.4
19+
cache: yarn
2020
- name: Node.js version
2121
id: node
2222
run: echo "v8CppApiVersion=$(node --print "process.versions.modules")" >> $GITHUB_OUTPUT

.github/workflows/docs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
workflow_dispatch:
88
inputs:
99
ref:
10-
description: 'Ref to deploy, defaults to `unstable`'
10+
description: "Ref to deploy, defaults to `unstable`"
1111
required: false
12-
default: 'unstable'
12+
default: "unstable"
1313
type: string
1414

1515
jobs:
@@ -31,9 +31,9 @@ jobs:
3131

3232
- uses: actions/setup-node@v4
3333
with:
34-
node-version: 22
34+
node-version: 22.4
3535
check-latest: true
36-
cache: yarn
36+
cache: yarn
3737

3838
- name: Node.js version
3939
id: node

.github/workflows/publish-dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
fetch-depth: 0
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 22
23+
node-version: 22.4
2424
registry-url: "https://registry.npmjs.org"
2525
check-latest: true
26-
cache: yarn
26+
cache: yarn
2727
- name: Node.js version
2828
id: node
2929
run: echo "v8CppApiVersion=$(node --print "process.versions.modules")" >> $GITHUB_OUTPUT

.github/workflows/publish-rc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- uses: "./.github/actions/setup-and-build"
6363
with:
64-
node: 22
64+
node: 22.4
6565

6666
- name: Generate changelog
6767
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

.github/workflows/publish-stable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
- uses: "./.github/actions/setup-and-build"
6969
with:
70-
node: 22
70+
node: 22.4
7171

7272
- name: Generate changelog
7373
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

.github/workflows/test-sim-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: 22
33+
node-version: 22.4
3434
check-latest: true
3535
cache: yarn
3636
- name: Node.js version

.github/workflows/test-sim.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- uses: "./.github/actions/setup-and-build"
3333
with:
34-
node: 22
34+
node: 22.4
3535

3636
sim-test-multifork:
3737
name: Multifork sim test
@@ -42,7 +42,7 @@ jobs:
4242
- uses: actions/checkout@v4
4343
- uses: "./.github/actions/setup-and-build"
4444
with:
45-
node: 22
45+
node: 22.4
4646
- name: Load env variables
4747
uses: ./.github/actions/dotenv
4848
- name: Download required docker images before running tests
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v4
7272
- uses: "./.github/actions/setup-and-build"
7373
with:
74-
node: 22
74+
node: 22.4
7575
- name: Load env variables
7676
uses: ./.github/actions/dotenv
7777
- name: Download required docker images before running tests
@@ -100,7 +100,7 @@ jobs:
100100
- uses: actions/checkout@v4
101101
- uses: "./.github/actions/setup-and-build"
102102
with:
103-
node: 22
103+
node: 22.4
104104
- name: Load env variables
105105
uses: ./.github/actions/dotenv
106106
- name: Download required docker images before running tests
@@ -129,7 +129,7 @@ jobs:
129129
- uses: actions/checkout@v4
130130
- uses: "./.github/actions/setup-and-build"
131131
with:
132-
node: 22
132+
node: 22.4
133133
- name: Load env variables
134134
uses: ./.github/actions/dotenv
135135
- name: Download required docker images before running tests
@@ -158,7 +158,7 @@ jobs:
158158
- uses: actions/checkout@v4
159159
- uses: "./.github/actions/setup-and-build"
160160
with:
161-
node: 22
161+
node: 22.4
162162
- name: Load env variables
163163
uses: ./.github/actions/dotenv
164164
- name: Download required docker images before running tests

.github/workflows/test.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
node: [22]
22+
node: [22.4]
2323
steps:
2424
# <common-build> - Uses YAML anchors in the future
2525
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
node: [22]
45+
node: [22.4]
4646
steps:
4747
- uses: actions/checkout@v4
4848
- uses: "./.github/actions/setup-and-build"
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
node: [22]
77+
node: [22.4]
7878
steps:
7979
- uses: actions/checkout@v4
8080

@@ -95,7 +95,7 @@ jobs:
9595
strategy:
9696
fail-fast: false
9797
matrix:
98-
node: [22]
98+
node: [22.4]
9999
steps:
100100
- uses: actions/checkout@v4
101101
- uses: "./.github/actions/setup-and-build"
@@ -134,7 +134,7 @@ jobs:
134134
strategy:
135135
fail-fast: false
136136
matrix:
137-
node: [22]
137+
node: [22.4]
138138
steps:
139139
# <common-build> - Uses YAML anchors in the future
140140
- uses: actions/checkout@v4
@@ -171,7 +171,7 @@ jobs:
171171
strategy:
172172
fail-fast: false
173173
matrix:
174-
node: [22]
174+
node: [22.4]
175175
steps:
176176
# <common-build> - Uses YAML anchors in the future
177177
- uses: actions/checkout@v4
@@ -195,7 +195,7 @@ jobs:
195195
strategy:
196196
fail-fast: false
197197
matrix:
198-
node: [22]
198+
node: [22.4]
199199
steps:
200200
- uses: actions/checkout@v4
201201
- uses: "./.github/actions/setup-and-build"

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# --platform=$BUILDPLATFORM is used build javascript source with host arch
33
# Otherwise TS builds on emulated archs and can be extremely slow (+1h)
4-
FROM --platform=${BUILDPLATFORM:-amd64} node:22-alpine as build_src
4+
FROM --platform=${BUILDPLATFORM:-amd64} node:22.4-alpine as build_src
55
ARG COMMIT
66
WORKDIR /usr/app
77
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
@@ -21,7 +21,7 @@ RUN cd packages/cli && GIT_COMMIT=${COMMIT} yarn write-git-data
2121

2222
# Copy built src + node_modules to build native packages for archs different than host.
2323
# Note: This step is redundant for the host arch
24-
FROM node:22-alpine as build_deps
24+
FROM node:22.4-alpine as build_deps
2525
WORKDIR /usr/app
2626
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
2727

@@ -35,7 +35,7 @@ RUN cd node_modules/classic-level && yarn rebuild
3535

3636
# Copy built src + node_modules to a new layer to prune unnecessary fs
3737
# Previous layer weights 7.25GB, while this final 488MB (as of Oct 2020)
38-
FROM node:22-alpine
38+
FROM node:22.4-alpine
3939
WORKDIR /usr/app
4040
COPY --from=build_deps /usr/app .
4141

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"npmClient": "yarn",
66
"useNx": true,
7-
"version": "1.20.1",
7+
"version": "1.20.2",
88
"stream": true,
99
"command": {
1010
"version": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "root",
33
"private": true,
44
"engines": {
5-
"node": ">=20.1.0 <21 || >=22 <23"
5+
"node": ">=20.1.0 <21 || >=22 <22.5"
66
},
77
"packageManager": "[email protected]+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca",
88
"workspaces": [

packages/api/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": {
1212
"url": "https://github.com/ChainSafe/lodestar/issues"
1313
},
14-
"version": "1.20.1",
14+
"version": "1.20.2",
1515
"type": "module",
1616
"exports": {
1717
".": {
@@ -72,10 +72,10 @@
7272
"dependencies": {
7373
"@chainsafe/persistent-merkle-tree": "^0.7.1",
7474
"@chainsafe/ssz": "^0.15.1",
75-
"@lodestar/config": "^1.20.1",
76-
"@lodestar/params": "^1.20.1",
77-
"@lodestar/types": "^1.20.1",
78-
"@lodestar/utils": "^1.20.1",
75+
"@lodestar/config": "^1.20.2",
76+
"@lodestar/params": "^1.20.2",
77+
"@lodestar/types": "^1.20.2",
78+
"@lodestar/utils": "^1.20.2",
7979
"eventsource": "^2.0.2",
8080
"qs": "^6.11.1"
8181
},

packages/api/src/beacon/routes/beacon/block.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,16 @@ export function getDefinitions(config: ChainForkConfig): RouteDefinitions<Endpoi
444444
};
445445
},
446446
parseReqJson: ({body, headers}) => {
447-
const fork = toForkName(fromHeaders(headers, MetaHeader.Version));
447+
let fork: ForkName;
448+
// As per spec, version header is optional for JSON requests
449+
const versionHeader = fromHeaders(headers, MetaHeader.Version, false);
450+
if (versionHeader !== undefined) {
451+
fork = toForkName(versionHeader);
452+
} else {
453+
// Determine fork from slot in JSON payload
454+
fork = config.getForkName((body as SignedBlindedBeaconBlock).message.slot);
455+
}
456+
448457
return {
449458
signedBlindedBlock: getExecutionForkTypes(fork).SignedBlindedBeaconBlock.fromJson(body),
450459
};

packages/beacon-node/package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": {
1212
"url": "https://github.com/ChainSafe/lodestar/issues"
1313
},
14-
"version": "1.20.1",
14+
"version": "1.20.2",
1515
"type": "module",
1616
"exports": {
1717
".": {
@@ -120,18 +120,18 @@
120120
"@libp2p/peer-id-factory": "^4.1.0",
121121
"@libp2p/prometheus-metrics": "^3.0.21",
122122
"@libp2p/tcp": "9.0.23",
123-
"@lodestar/api": "^1.20.1",
124-
"@lodestar/config": "^1.20.1",
125-
"@lodestar/db": "^1.20.1",
126-
"@lodestar/fork-choice": "^1.20.1",
127-
"@lodestar/light-client": "^1.20.1",
128-
"@lodestar/logger": "^1.20.1",
129-
"@lodestar/params": "^1.20.1",
130-
"@lodestar/reqresp": "^1.20.1",
131-
"@lodestar/state-transition": "^1.20.1",
132-
"@lodestar/types": "^1.20.1",
133-
"@lodestar/utils": "^1.20.1",
134-
"@lodestar/validator": "^1.20.1",
123+
"@lodestar/api": "^1.20.2",
124+
"@lodestar/config": "^1.20.2",
125+
"@lodestar/db": "^1.20.2",
126+
"@lodestar/fork-choice": "^1.20.2",
127+
"@lodestar/light-client": "^1.20.2",
128+
"@lodestar/logger": "^1.20.2",
129+
"@lodestar/params": "^1.20.2",
130+
"@lodestar/reqresp": "^1.20.2",
131+
"@lodestar/state-transition": "^1.20.2",
132+
"@lodestar/types": "^1.20.2",
133+
"@lodestar/utils": "^1.20.2",
134+
"@lodestar/validator": "^1.20.2",
135135
"@multiformats/multiaddr": "^12.1.3",
136136
"c-kzg": "^2.1.2",
137137
"datastore-core": "^9.1.1",

packages/cli/package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chainsafe/lodestar",
3-
"version": "1.20.1",
3+
"version": "1.20.2",
44
"description": "Command line interface for lodestar",
55
"author": "ChainSafe Systems",
66
"license": "LGPL-3.0",
@@ -63,17 +63,17 @@
6363
"@libp2p/crypto": "^4.1.0",
6464
"@libp2p/peer-id": "^4.1.0",
6565
"@libp2p/peer-id-factory": "^4.1.0",
66-
"@lodestar/api": "^1.20.1",
67-
"@lodestar/beacon-node": "^1.20.1",
68-
"@lodestar/config": "^1.20.1",
69-
"@lodestar/db": "^1.20.1",
70-
"@lodestar/light-client": "^1.20.1",
71-
"@lodestar/logger": "^1.20.1",
72-
"@lodestar/params": "^1.20.1",
73-
"@lodestar/state-transition": "^1.20.1",
74-
"@lodestar/types": "^1.20.1",
75-
"@lodestar/utils": "^1.20.1",
76-
"@lodestar/validator": "^1.20.1",
66+
"@lodestar/api": "^1.20.2",
67+
"@lodestar/beacon-node": "^1.20.2",
68+
"@lodestar/config": "^1.20.2",
69+
"@lodestar/db": "^1.20.2",
70+
"@lodestar/light-client": "^1.20.2",
71+
"@lodestar/logger": "^1.20.2",
72+
"@lodestar/params": "^1.20.2",
73+
"@lodestar/state-transition": "^1.20.2",
74+
"@lodestar/types": "^1.20.2",
75+
"@lodestar/utils": "^1.20.2",
76+
"@lodestar/validator": "^1.20.2",
7777
"@multiformats/multiaddr": "^12.1.3",
7878
"deepmerge": "^4.3.1",
7979
"ethers": "^6.7.0",
@@ -89,7 +89,7 @@
8989
"yargs": "^17.7.1"
9090
},
9191
"devDependencies": {
92-
"@lodestar/test-utils": "^1.20.1",
92+
"@lodestar/test-utils": "^1.20.2",
9393
"@types/debug": "^4.1.7",
9494
"@types/got": "^9.6.12",
9595
"@types/inquirer": "^9.0.3",

0 commit comments

Comments
 (0)