Skip to content

Commit

Permalink
Merge pull request #2556 from nervosnetwork/rc/v0.106.0
Browse files Browse the repository at this point in the history
Release v0.106.0
  • Loading branch information
Keith-CY authored Dec 28, 2022
2 parents 454ba8f + e5a83ba commit 7a06446
Show file tree
Hide file tree
Showing 155 changed files with 6,551 additions and 5,521 deletions.
2 changes: 1 addition & 1 deletion .ckb-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.103.0
v0.106.0
16 changes: 16 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version = 1

[[analyzers]]
name = "shell"
enabled = true

[[analyzers]]
name = "javascript"
enabled = true

[analyzers.meta]
plugins = ["react"]

[[analyzers]]
name = "ruby"
enabled = true
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"

updates:
- package-ecosystem: "npm"
directory: "/packages/neuron-ui"
schedule:
interval: "weekly"

updates:
- package-ecosystem: "npm"
directory: "/packages/neuron-wallet"
schedule:
interval: "weekly"

updates:
- package-ecosystem: "npm"
directory: "/packages/ckb-indexer"
schedule:
interval: "weekly"
8 changes: 4 additions & 4 deletions .github/workflows/check_checksums.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check Checksums

on:
on:
release:
types: [published, prereleased]

Expand All @@ -13,13 +13,13 @@ jobs:
uses: actions/checkout@v2

- name: Generate checksums from artifacts
run:
run:
ruby ./scripts/release-checksums.rb ${{ github.event.release.tag_name }} | tee generated_checksums.txt

- name: Fetch checksums from release note
run: |
curl "https://api.github.com/repos/nervosnetwork/neuron/releases/tags/${{ github.event.release.tag_name }}" |\
python3 -c "import sys, json; print(\"\n\".join(json.load(sys.stdin)['body'].splitlines()[-9:]))" |\
python3 -c "import sys, json; print(\"\n\".join(json.load(sys.stdin)['body'].splitlines()[-11:]))" |\
tee release_note_checksums.txt
- name: Compare
Expand All @@ -30,7 +30,7 @@ jobs:
body=$(cat generated_checksums.txt)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name=body::$body
- uses: peter-evans/commit-comment@v1
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "develop", master, rc/* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
schedule:
- cron: '24 10 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
22 changes: 18 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node:
- 16.10.0
- 18.12.0
os:
- macos-11
- ubuntu-20.04
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Add msbuild to PATH
if: matrix.os == 'windows-2019'
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

Expand Down Expand Up @@ -103,14 +103,28 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Neuron-Mac
path: release/Neuron-*-mac.zip
path: release/Neuron-*-mac-x64.zip

- name: Upload Neuron App Zip(arm64)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: Neuron-Mac
path: release/Neuron-*-mac-arm64.zip

- name: Upload Neuron Dmg
if: matrix.os == 'macos-11'
uses: actions/upload-artifact@v2
with:
name: Neuron-Dmg
path: release/Neuron-*.dmg
path: release/Neuron-*-x64.dmg

- name: Upload Neuron Dmg(arm64)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: Neuron-Dmg
path: release/Neuron-*-arm64.dmg

- name: Upload Neuron Win
if: matrix.os == 'windows-2019'
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
node:
- 16.10.0
- 18.12.0
os:
- macos-11
- ubuntu-20.04
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Add msbuild to PATH
if: matrix.os == 'windows-2019'
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1.3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

Expand Down Expand Up @@ -98,14 +98,28 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Neuron-Mac
path: release/Neuron-*-mac.zip
path: release/Neuron-*-mac-x64.zip

- name: Upload Neuron App Zip(arm64)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: Neuron-Mac
path: release/Neuron-*-mac-arm64.zip

- name: Upload Neuron Dmg
if: matrix.os == 'macos-11'
uses: actions/upload-artifact@v2
with:
name: Neuron-Dmg
path: release/Neuron-*.dmg
path: release/Neuron-*-x64.dmg

- name: Upload Neuron Dmg(arm64)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: Neuron-Dmg
path: release/Neuron-*-arm64.dmg

- name: Upload Neuron Win
if: matrix.os == 'windows-2019'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
node:
- 16.10.0
- 18.12.0
os:
- macos-latest
- ubuntu-20.04
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# 0.106.0 (2022-12-28)

### CKB

[CKB v0.106.0](https://github.com/nervosnetwork/ckb/releases/tag/v0.106.0) was released on Dec. 23rd, 2022. This version of CKB node is now bundled and preconfigured in Neuron.

### Assumed valid target

Block before `0x076ffa81f8c6f2e1f22a778a1aa5d48531cc33bfd9b302e0d73fb2ce6fa4de3b` will be skipped in validation.

### New features
* #2442: Make multisig import and export config compatible with ckb-cli.(@yanguoyu)
* #2454: Add 'contact us' in the menu -> help submenu.(@Keith-CY)
* #2461: Remove 4 epochs maturity requirement of header deps.(@yanguoyu)
* #2465: Adapt new UAN.(@yanguoyu)
* #2508: Use undici, an official http client, to replace axios.(@yanguoyu)
* #2515, #2542: Support Apple silicon chip.(@JeffreyMa597, @yanguoyu)
* #2518: Bump node.js from 16 to 18.(@JeffreyMa597)
* #2519: Bump react.js from 16 to 18.(@JeffreyMa597)
* #2555: Upgrade ckb node to v0.106.0.(@Keith-CY)

### Bug fixes
* #2447: Prevent from importing the same multisig configuration repeatedly.(@yanguoyu)
* #2451: Refine the input field component.(@yanguoyu)
* #2464, #2478: Optimize setting data path.(@yanguoyu)
* #2467: Fix ckb process killed unexpectedly.(@yanguoyu)
* #2483: Fix ckb node not working with Apple silicon chip.(@yanguoyu)
* #2488: Create a new instance for every test case to avoid side effect.(@yanguoyu)
* #2531: Handle uncaughtException and output it in the log.(@yanguoyu)
* #2541: Remove CKB Indexer module and set a specified version of usb module.(@yanguoyu)

## New contributors
* @JeffreyMa597 made their first contribution in #2515

**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.103.3...v0.106.0



# 0.103.3 (2022-12-21)

### Certificate
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Nervos CKB Full-Node Desktop Wallet

### Prerequisites

You will need `node >= 16` and `yarn >= 1.14` to build and run Neuron.
You will need `node >= 18.12.0` and `yarn >= 1.14` to build and run Neuron.

#### Lerna

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.103.3",
"version": "0.106.0",
"npmClient": "yarn",
"useWorkspaces": true
}
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">= 16.0",
"node": ">= 18.12",
"yarn": ">= 1.14"
},
"workspaces": [
Expand All @@ -25,14 +25,14 @@
"bootstrap": "npx cross-env lerna bootstrap && lerna link",
"start:ui": "cd packages/neuron-ui && yarn run start",
"start:wallet": "cd packages/neuron-wallet && yarn run start:debug",
"start": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on http://localhost:3000 && yarn run start:wallet\"",
"start": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on http://127.0.0.1:3000 && yarn run start:wallet\"",
"clean": "lerna run --stream clean",
"prebuild": "yarn clean",
"build": "lerna run --stream build",
"build:main": "lerna run build --scope=neuron-wallet",
"release": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/release.sh",
"package:test": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/package-for-test.sh",
"test": "lerna run --parallel test",
"test": "cross-env NODE_OPTIONS=--openssl-legacy-provider lerna run --parallel test",
"test:ci": "yarn build:main && yarn test",
"lint": "lerna run --stream lint",
"postinstall": "lerna run build --scope=@nervina-labs/ckb-indexer",
Expand All @@ -44,22 +44,25 @@
}
},
"devDependencies": {
"@babel/core": "7.17.10",
"@types/jest": "27.5.0",
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "5.23.0",
"@typescript-eslint/parser": "5.23.0",
"concurrently": "7.0.0",
"@babel/core": "7.19.3",
"@types/jest": "27.5.2",
"@types/node": "18.11.9",
"@types/npmlog": "4.1.4",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"concurrently": "7.4.0",
"cross-env": "7.0.3",
"husky": "3.0.5",
"lerna": "4.0.0",
"husky": "3.1.0",
"lerna": "5.6.2",
"ncp": "2.0.0",
"ts-jest": "27.1.4",
"typescript": "3.8.2",
"wait-on": "6.0.0"
"ts-jest": "27.1.5",
"typescript": "4.8.3",
"wait-on": "6.0.1"
},
"dependencies": {},
"resolutions": {
"@types/react": "16.9.15"
"@types/react": "17.0.39",
"react-i18next": ">=11.16.4",
"usb": "1.8.8"
}
}
Loading

3 comments on commit 7a06446

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 3792520672

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'
'### Downloads'
''
'OS | Arch | Package | SHA256 Checksum'
'-- | -- | -- | --'
'Windows | x64 | exe | ad25084bfef9a533efe873d529968bad2d7b8f516da43c2b0d515fb12e4bf6f2'
'macOS | x64 | zip | 97ee83b8330515b77c53ac970181b942aea09b6664e913c02cd452cab0ec4635'
'macOS | arm64 | zip | 5080518acdb733fbc0466cb8b7dba2d97d5d1fd1ab0022014c5d5b65de8279ec'
'macOS | x64 | DMG | a27cb4546c57859c7e650b693920cda04cd64b274fd2d6419f1e535c7f864023'
'macOS | arm64 | DMG | 25aac7745a49545593c7aa89ea0eecc82e8a132d7566baceac5031224ff35173'
'Linux | x64 | AppImage | 4c06f3242fda370c9420192fffc1b8b0cd3b79e7bb8dc1778df0b8cf47943ef0

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 3792689278

Please sign in to comment.