Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Prepare Release v2.2.7 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio authored Oct 6, 2021
1 parent 7da7f06 commit 3d8d46c
Show file tree
Hide file tree
Showing 17 changed files with 13,574 additions and 159 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
extends: '@ethereumjs/eslint-config-defaults',
parserOptions: {
project: ['./tsconfig.json'],
},
env: {
mocha: true,
},
rules: {
'@typescript-eslint/no-use-before-define': 'off',
},
}
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,28 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
node-version: [12.x, 13.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- uses: actions/checkout@v2

- run: npm install
- run: npm run test

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x

- uses: actions/checkout@v2
cache: 'npm'

- run: npm install
- run: npm run coverage
Expand Down
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
### App ###

.cachedb


# Created by https://www.gitignore.io/api/osx,node

### OSX ###
Expand All @@ -13,7 +11,6 @@
# Icon must end with two \r
Icon


# Thumbnails
._*

Expand All @@ -32,7 +29,6 @@ Network Trash Folder
Temporary Items
.apdisk


### Node ###
# Logs
logs
Expand Down Expand Up @@ -62,9 +58,7 @@ build/Release
# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
package-lock.json



dist
.nyc_output
dist.browser
.nyc_output
3 changes: 0 additions & 3 deletions .nycrc

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
(modification: no type change headlines) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [v2.2.7] - 2021-10-06

- Performance: Avoid creating new array when checking first two chars, PR [#100](https://github.com/ethereumjs/rlp/pull/100)
- Update BN from require to import, PR [#99](https://github.com/ethereumjs/rlp/pull/99)
- Update dependencies to latest and add browser build, PR [#102](https://github.com/ethereumjs/rlp/pull/102)

[v2.2.7]: https://github.com/ethereumjs/rlp/compare/2.2.6...v2.2.7

## [v2.2.6] - 2020-07-17

- Fixed a few edge-cases in decoding long strings that previously could cause
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ assert.deepEqual(nestedList, decoded)

## TESTS

Test uses mocha. To run tests and linting: `npm test`. To auto fix linting problems use: `npm run test:fix`.
Tests use mocha.

To run tests and linting: `npm test`

To auto fix linting problems use: `npm run lint:fix`

## CODE COVERAGE

Expand Down
15 changes: 7 additions & 8 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ module.exports = function (config) {
preprocessors: {
'**/*.ts': ['karma-typescript'],
},
plugins: ['karma-mocha', 'karma-typescript', 'karma-chrome-launcher', 'karma-firefox-launcher'],
karmaTypescriptConfig: {
bundlerOptions: {
entrypoints: /\.spec\.ts$/,
},
tsconfig: './tsconfig.json',
},
colors: true,
reporters: ['progress', 'karma-typescript'],
browsers: ['FirefoxHeadless', 'ChromeHeadless'],
singleRun: true,
concurrency: Infinity,
concurrency: 1,
// Fail after timeout
browserDisconnectTimeout: 100000,
browserNoActivityTimeout: 100000,
karmaTypescriptConfig: {
bundlerOptions: {
entrypoints: /\.spec\.ts$/,
},
tsconfig: './tsconfig.json',
},
})
}
Loading

0 comments on commit 3d8d46c

Please sign in to comment.