Skip to content

Commit 79a2c5a

Browse files
authored
Merge pull request #1691 from aeternity/release/13.0.0
Release 13.0.0
2 parents a4df699 + 09e556a commit 79a2c5a

File tree

223 files changed

+14249
-18904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+14249
-18904
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
NODE_TAG=v6.5.2
2-
COMPILER_TAG=v6.1.0
1+
NODE_TAG=v6.8.0
2+
COMPILER_TAG=v7.2.0

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module.exports = {
2121
'@typescript-eslint',
2222
'rulesdir',
2323
],
24-
ignorePatterns: ['dist', 'es', 'src/apis', 'docs/api'],
24+
ignorePatterns: [
25+
'dist', 'es', 'src/apis', 'docs/api', 'test/environment/ledger/browser', 'types-legacy',
26+
],
2527
rules: {
2628
'rulesdir/tsdoc-syntax': 'error',
2729
'no-spaced-func': 'off',

.github/workflows/codeql.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "develop", "master" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
schedule:
9+
- cron: "59 6 * * 2"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ javascript ]
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
queries: +security-and-quality
34+
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v2
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v2
40+
with:
41+
category: "/language:${{ matrix.language }}"

.github/workflows/main.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@ name: Test & build
22
on: [push, pull_request]
33
jobs:
44
main:
5-
runs-on: ubuntu-latest
5+
runs-on: ubuntu-22.04
66
steps:
7+
- run: |
8+
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
9+
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
710
- uses: actions/checkout@v2
811
with:
912
fetch-depth: 0
1013
- uses: actions/setup-node@v2
1114
with:
12-
node-version: 16.x
15+
node-version: 18.x
1316
- uses: actions/cache@v3
1417
with:
1518
path: |
1619
~/.npm
1720
~/.autorest
1821
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
19-
- run: npm ci --ignore-scripts
22+
- run: npm ci
2023
- name: Run Commitlint
2124
env:
2225
EVENT_TYPE: ${{ github.event_name }}
@@ -28,16 +31,17 @@ jobs:
2831
else
2932
npx commitlint --from $BASE --to $HEAD --verbose
3033
fi
31-
- run: npm run build
3234
- run: npm run lint
3335
- run: docker-compose up -d
3436
- name: Ensure that node is running
3537
run: |
3638
while [[ `curl -s -o /dev/null -w %{http_code} localhost:3013/api` != 200 ]]; do
3739
sleep 0.2;
3840
done
39-
- run: npm run test
40-
- run: npm run report-coverage
41-
if: always()
41+
- run: npx nyc npm run test
42+
- run: npx nyc report --reporter=text-lcov > coverage.lcov
43+
- uses: codecov/codecov-action@v3
44+
with:
45+
files: coverage.lcov
4246
- run: docker-compose logs
4347
if: always()

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ debug/
2121
/coverage
2222
coverage.*
2323
.nyc_output/
24-
/examples/**/package-lock.json
25-
/examples/**/dist
24+
/**/package-lock.json
25+
/**/dist
2626
/examples/**/artifacts
2727
.history
2828
.site
2929
site
3030
/src/apis/
31+
/src/tx/builder/schema.generated.ts
32+
/tooling/autorest/compiler-swagger.yaml
33+
/test/environment/ledger/browser
34+
/types-legacy
35+
/bin

.mocharc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
module.exports = {
2-
require: [
3-
'@babel/register',
4-
'ts-node/register'
5-
],
2+
require: 'tooling/babel-register.js',
63
recursive: true,
74
extension: '.js,.ts',
85
timeout: '40s',
6+
ignore: 'test/environment/**',
97
exit: true // TODO: fix in state channel tests
108
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
1414
## Guides & Examples
1515

1616
Introduction
17-
- [Installation](docs/index.md)
17+
- [Installation](docs/README.md)
1818
- [Quick Start](docs/quick-start.md)
1919

2020
Usage guides:

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ module.exports = {
22
presets: [
33
['@babel/preset-env', {
44
include: [
5+
// compatibility with create-react-app@4
56
'@babel/plugin-proposal-nullish-coalescing-operator',
7+
// compatibility with [email protected]
68
'@babel/plugin-proposal-logical-assignment-operators',
9+
// compatibility with @vue/cli@4
10+
'@babel/plugin-proposal-class-properties',
11+
'@babel/plugin-proposal-private-methods',
712
],
813
}],
914
'@babel/preset-typescript',
1015
],
1116
plugins: [
1217
['@babel/plugin-transform-runtime', { corejs: 3 }],
18+
'babel-plugin-transform-import-meta',
1319
],
1420
};

babel.esm.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ config.plugins.push(
1111
}],
1212
['transform-default-named-imports'],
1313
);
14+
config.plugins = config.plugins.filter((p) => p !== 'babel-plugin-transform-import-meta');
1415

1516
module.exports = config;

commitlint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ module.exports = {
55
2,
66
'always',
77
[
8+
'account',
89
'aens',
910
'aepp',
1011
'chain',
1112
'channel',
1213
'compiler',
1314
'contract',
1415
'deps',
16+
'deps-dev',
1517
'node',
1618
'oracle',
1719
'release',

0 commit comments

Comments
 (0)