Skip to content
Open
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
33 changes: 0 additions & 33 deletions .babelrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_npmjs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 22
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
with:
token: ${{ secrets.REPO_GHA_PAT }}
release-type: node
package-name: '@fairdatasociety/bmt-js'
package-name: '@nugaon/bmt-js'
bump-minor-pre-major: true
25 changes: 7 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@ on:

env:
WORKERS: 4
BEE_VERSION: '1.4.1'
BLOCKCHAIN_VERSION: '1.2.0'
BEE_ENV_PREFIX: 'swarm-test'
BEE_IMAGE_PREFIX: 'docker.pkg.github.com/ethersphere/bee-factory'
COMMIT_VERSION_TAG: 'false'
BEE_API_URL: 'http://127.0.0.1:1633'
BEE_DEBUG_API_URL: 'http://127.0.0.1:1635'

jobs:
node-tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 15.x, 16.x, 17.x]
node-version: [18.x, 20.x, 22.x]

steps:
- name: Checkout
Expand All @@ -37,16 +31,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Auth to Github Package Docker Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://docker.pkg.github.com -u ${GITHUB_ACTOR} --password-stdin

# Setup Bee environment
- name: Start Bee Factory environment
run: |
git clone --depth=1 https://github.com/fairDataSociety/bee-factory.git
chmod +x -R ./bee-factory/scripts
./bee-factory/scripts/environment.sh start --detach --workers=$WORKERS
#- name: Auth to Github Package Docker Registry
# run: |
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://docker.pkg.github.com -u ${GITHUB_ACTOR} --password-stdin

## Try getting the node modules from cache, if failed npm ci
- uses: actions/cache@v2
Expand All @@ -59,6 +46,8 @@ jobs:
${{ runner.OS }}-node-${{ matrix.node }}-
- name: Install npm deps
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
run: npm ci && npm ci && npm install -g @fairdatasociety/fdp-play
- name: Run FDP Play
run: npx fdp-play start --workers $WORKERS -d
- name: Run tests
run: npm run test
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [2.2.0](https://www.github.com/fairDataSociety/bmt-js/compare/v2.1.0...v2.2.0) (2024-10-02)


### Features

* let's roll ([4fe3c70](https://www.github.com/fairDataSociety/bmt-js/commit/4fe3c7074f91ef33b41361f636f6dd7ab92464ac))
* update packages ([023d9c7](https://www.github.com/fairDataSociety/bmt-js/commit/023d9c7f4af1689804637a081327b765fa947158))


### Bug Fixes

* test setup ([f317a8c](https://www.github.com/fairDataSociety/bmt-js/commit/f317a8c15ee1437e37dcab3880035be6aa935936))

## [2.1.0](https://www.github.com/fairDataSociety/bmt-js/compare/v2.0.1...v2.1.0) (2023-07-05)


Expand Down
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2024 nugaon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The library calculates the content address of any data and also offers functions
# Install

```sh
npm install @fairdatasociety/bmt-js --save
npm install @nugaon/bmt-js --save
```

# How it works
Expand Down Expand Up @@ -51,7 +51,7 @@ To get these inclusion segments, the library collects all required segments from

# API

You can import the followings directly from `@fairdatasociety/bmt-js`:
You can import the followings directly from `@nugaon/bmt-js`:

## Types

Expand Down
Loading