Skip to content

Commit

Permalink
Merge pull request #248 from hirosystems/beta
Browse files Browse the repository at this point in the history
release to master
  • Loading branch information
rafaelcr authored Aug 26, 2024
2 parents 1aa1603 + eae7e65 commit b96de1a
Show file tree
Hide file tree
Showing 79 changed files with 5,085 additions and 16,145 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ module.exports = {
ecmaVersion: 2020,
sourceType: 'module',
},
ignorePatterns: ['*.config.js', 'config/*', '*.mjs', 'tests/*.js', 'client/*'],
ignorePatterns: [
'*.config.js',
'config/*',
'*.mjs',
'tests/**/*.js',
'client/*',
'coverage/*',
'dist/*',
],
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'prettier'],
rules: {
'prettier/prettier': 'error',
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -49,10 +49,15 @@ jobs:
run: npm run lint:prettier

test:
strategy:
fail-fast: false
matrix:
suite: [admin, api, chainhook, token-queue]
runs-on: ubuntu-latest
env:
API_HOST: 127.0.0.1
API_PORT: 3000
PROMETHEUS_PORT: 9154
PGHOST: 127.0.0.1
PGPORT: 5432
PGUSER: postgres
Expand All @@ -66,7 +71,7 @@ jobs:
STACKS_NODE_RPC_HOST: 127.0.0.1
STACKS_NODE_RPC_PORT: 24440
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -76,7 +81,7 @@ jobs:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -99,10 +104,12 @@ jobs:
npm run testenv:logs -- --no-color &> docker-compose-logs.txt &
- name: Run tests
run: npm run test -- --coverage
run: npm run test:${{ matrix.suite }} -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Print integration environment logs
run: cat docker-compose-logs.txt
Expand All @@ -118,14 +125,14 @@ jobs:
- lint
- test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: false

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
id: semantic
# Only run on non-PR events or only PRs that aren't from forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
64 changes: 64 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,69 @@
"preLaunchTask": "npm: testenv:run",
"postDebugTask": "npm: testenv:stop",
},
{
"type": "node",
"request": "launch",
"name": "Jest: Admin",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--testTimeout=3600000",
"--runInBand",
"--no-cache",
"${workspaceFolder}/tests/admin/"
],
"outputCapture": "std",
"console": "integratedTerminal",
"preLaunchTask": "npm: testenv:run",
"postDebugTask": "npm: testenv:stop",
},
{
"type": "node",
"request": "launch",
"name": "Jest: API",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--testTimeout=3600000",
"--runInBand",
"--no-cache",
"${workspaceFolder}/tests/api/"
],
"outputCapture": "std",
"console": "integratedTerminal",
"preLaunchTask": "npm: testenv:run",
"postDebugTask": "npm: testenv:stop",
},
{
"type": "node",
"request": "launch",
"name": "Jest: Chainhook",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--testTimeout=3600000",
"--runInBand",
"--no-cache",
"${workspaceFolder}/tests/chainhook/",
],
"outputCapture": "std",
"console": "integratedTerminal",
"preLaunchTask": "npm: testenv:run",
"postDebugTask": "npm: testenv:stop",
},
{
"type": "node",
"request": "launch",
"name": "Jest: Token Queue",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--testTimeout=3600000",
"--runInBand",
"--no-cache",
"${workspaceFolder}/tests/token-queue/"
],
"outputCapture": "std",
"console": "integratedTerminal",
"preLaunchTask": "npm: testenv:run",
"postDebugTask": "npm: testenv:stop",
},
]
}
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
## [1.0.0-beta.7](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2024-08-26)


### Bug Fixes

* catch econnreset errors ([#247](https://github.com/hirosystems/token-metadata-api/issues/247)) ([51347d6](https://github.com/hirosystems/token-metadata-api/commit/51347d635d4e50f299af07fef8378ae279f14461))

## [1.0.0-beta.6](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2024-08-26)


### Features

* convert data: image uris into image files and upload to cdn ([#245](https://github.com/hirosystems/token-metadata-api/issues/245)) ([903b0aa](https://github.com/hirosystems/token-metadata-api/commit/903b0aa2a63acc3340fdde570201f5c424f4443c))

## [1.0.0-beta.5](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2024-08-26)


### Bug Fixes

* set maximum job timeout ([#244](https://github.com/hirosystems/token-metadata-api/issues/244)) ([3444917](https://github.com/hirosystems/token-metadata-api/commit/344491770172a8f8a22f4f5d8c485fd98256997c))

## [1.0.0-beta.4](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2024-08-24)


### Bug Fixes

* take only first page of gif images ([#241](https://github.com/hirosystems/token-metadata-api/issues/241)) ([334f8c5](https://github.com/hirosystems/token-metadata-api/commit/334f8c524d976719f9d33ed611ddf6a1a8e7bb05))

## [1.0.0-beta.3](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-08-22)


### Bug Fixes

* use bignumber to handle FT supplies ([#239](https://github.com/hirosystems/token-metadata-api/issues/239)) ([053d622](https://github.com/hirosystems/token-metadata-api/commit/053d622d33bc46401acbe80980010e2407383c1a))

## [1.0.0-beta.2](https://github.com/hirosystems/token-metadata-api/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-08-22)


### Bug Fixes

* use google cloud library for image uploads ([#238](https://github.com/hirosystems/token-metadata-api/issues/238)) ([c7f1b43](https://github.com/hirosystems/token-metadata-api/commit/c7f1b4368dbec0e028a4e7676c82c25f0ebaeb09))

## [1.0.0-beta.1](https://github.com/hirosystems/token-metadata-api/compare/v0.7.0...v1.0.0-beta.1) (2024-08-21)


### ⚠ BREAKING CHANGES

* use chainhook to listen for chain events instead of a direct stacks api connection (#200)

### Bug Fixes

* use prometheus port configured in ENV ([c769d29](https://github.com/hirosystems/token-metadata-api/commit/c769d2950d65448265caf2bf6bd78fce437358c0))


### Code Refactoring

* use chainhook to listen for chain events instead of a direct stacks api connection ([#200](https://github.com/hirosystems/token-metadata-api/issues/200)) ([2ddb2c7](https://github.com/hirosystems/token-metadata-api/commit/2ddb2c7db37419538bd4267c863aaf1f8a2ec5c1)), closes [#229](https://github.com/hirosystems/token-metadata-api/issues/229) [#232](https://github.com/hirosystems/token-metadata-api/issues/232) [#233](https://github.com/hirosystems/token-metadata-api/issues/233) [#234](https://github.com/hirosystems/token-metadata-api/issues/234) [#235](https://github.com/hirosystems/token-metadata-api/issues/235) [#236](https://github.com/hirosystems/token-metadata-api/issues/236)

## [0.7.0](https://github.com/hirosystems/token-metadata-api/compare/v0.6.3...v0.7.0) (2024-05-13)


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine

WORKDIR /app
COPY . .
Expand Down
147 changes: 0 additions & 147 deletions config/image-cache.js

This file was deleted.

2 changes: 1 addition & 1 deletion docker/docker-compose.dev.postgres.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
postgres:
image: "postgres:14"
image: "postgres:15"
ports:
- "5432:5432"
environment:
Expand Down
Loading

0 comments on commit b96de1a

Please sign in to comment.