fix: mobx breakage by locking package dependencies (#1206)

This commit is contained in:
Rafael Cárdenas
2022-06-16 07:41:23 -05:00
committed by GitHub
parent 78d7d9c9f7
commit 5f8bc9fd4f
11 changed files with 11454 additions and 7600 deletions

View File

@@ -40,7 +40,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Lint ESLint - name: Lint ESLint
run: npm run lint:eslint run: npm run lint:eslint
@@ -81,7 +81,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Build schema & docs - name: Build schema & docs
run: npm run build run: npm run build
@@ -126,15 +126,15 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Install client deps - name: Install client deps
working-directory: client working-directory: client
run: npm install --audit=false run: npm ci --audit=false
- name: Install docs deps - name: Install docs deps
working-directory: docs working-directory: docs
run: npm install --audit=false run: npm ci --audit=false
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
@@ -193,7 +193,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
@@ -252,7 +252,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
@@ -311,7 +311,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0">> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0">> $GITHUB_ENV
@@ -378,7 +378,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install deps - name: Install deps
run: npm install --audit=false run: npm ci --audit=false
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0">> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0">> $GITHUB_ENV
@@ -431,7 +431,7 @@ jobs:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: Install deps - name: Install deps
run: npm install run: npm ci
- name: Setup env vars - name: Setup env vars
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV

View File

@@ -9,7 +9,7 @@ ports:
onOpen: ignore onOpen: ignore
tasks: tasks:
- init: npm install - init: npm ci
command: npm run dev command: npm run dev
- openMode: split-right - openMode: split-right
command: stacks-node start --config=stacks-blockchain/Stacks-dev.toml command: stacks-node start --config=stacks-blockchain/Stacks-dev.toml

View File

@@ -5,7 +5,7 @@ COPY . .
RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 git openjdk8-jre cmake RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 git openjdk8-jre cmake
RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env
RUN npm config set unsafe-perm true && npm install && npm run build && npm run build:docs && npm prune --production RUN npm config set unsafe-perm true && npm ci && npm run build && npm run build:docs && npm prune --production
RUN apk del .build-deps RUN apk del .build-deps
CMD ["node", "./lib/index.js"] CMD ["node", "./lib/index.js"]

View File

@@ -10,32 +10,32 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"@stacks/stacks-blockchain-api-types": "*", "@stacks/stacks-blockchain-api-types": "*",
"@types/ws": "^7.4.0", "@types/ws": "7.4.7",
"cross-fetch": "^3.0.6", "cross-fetch": "3.1.4",
"eventemitter3": "^4.0.4", "eventemitter3": "4.0.7",
"jsonrpc-lite": "^2.2.0", "jsonrpc-lite": "2.2.0",
"socket.io-client": "^4.0.1", "socket.io-client": "4.4.0",
"ws": "^7.4.0" "ws": "7.5.6"
}, },
"devDependencies": { "devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4", "@apidevtools/swagger-cli": "4.0.4",
"@openapitools/openapi-generator-cli": "^2.4.12", "@openapitools/openapi-generator-cli": "2.4.21",
"@stacks/eslint-config": "^1.0.7", "@stacks/eslint-config": "1.2.0",
"@stacks/prettier-config": "0.0.7", "@stacks/prettier-config": "0.0.7",
"@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "^4.22.0", "@typescript-eslint/parser": "4.33.0",
"concurrently": "^6.0.2", "concurrently": "6.5.1",
"eslint": "^7.25.0", "eslint": "7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "3.4.1",
"http-server": "^14.0.0", "http-server": "14.0.0",
"microbundle": "^0.13.0", "microbundle": "0.13.3",
"prettier": "^2.2.1", "prettier": "2.5.1",
"rimraf": "^3.0.2", "rimraf": "3.0.2",
"shx": "^0.3.2", "shx": "0.3.3",
"ts-node": "^9.1.1", "ts-node": "9.1.1",
"typedoc": "^0.20.36", "typedoc": "0.20.37",
"typescript": "^4.2.4" "typescript": "4.2.4"
} }
}, },
"node_modules/@apidevtools/json-schema-ref-parser": { "node_modules/@apidevtools/json-schema-ref-parser": {

View File

@@ -39,31 +39,31 @@
], ],
"dependencies": { "dependencies": {
"@stacks/stacks-blockchain-api-types": "*", "@stacks/stacks-blockchain-api-types": "*",
"@types/ws": "^7.4.0", "@types/ws": "7.4.7",
"cross-fetch": "^3.0.6", "cross-fetch": "3.1.4",
"eventemitter3": "^4.0.4", "eventemitter3": "4.0.7",
"jsonrpc-lite": "^2.2.0", "jsonrpc-lite": "2.2.0",
"socket.io-client": "^4.0.1", "socket.io-client": "4.4.0",
"ws": "^7.4.0" "ws": "7.5.6"
}, },
"devDependencies": { "devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4", "@apidevtools/swagger-cli": "4.0.4",
"@openapitools/openapi-generator-cli": "^2.4.12", "@openapitools/openapi-generator-cli": "2.4.21",
"@stacks/eslint-config": "^1.0.7", "@stacks/eslint-config": "1.2.0",
"@stacks/prettier-config": "0.0.7", "@stacks/prettier-config": "0.0.7",
"@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "^4.22.0", "@typescript-eslint/parser": "4.33.0",
"concurrently": "^6.0.2", "concurrently": "6.5.1",
"eslint": "^7.25.0", "eslint": "7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "3.4.1",
"http-server": "^14.0.0", "http-server": "14.0.0",
"microbundle": "^0.13.0", "microbundle": "0.13.3",
"prettier": "^2.2.1", "prettier": "2.5.1",
"rimraf": "^3.0.2", "rimraf": "3.0.2",
"shx": "^0.3.2", "shx": "0.3.3",
"ts-node": "^9.1.1", "ts-node": "9.1.1",
"typedoc": "^0.20.36", "typedoc": "0.20.37",
"typescript": "^4.2.4" "typescript": "4.2.4"
} }
} }

View File

@@ -33,7 +33,7 @@ RUN apt-get update -y \
&& git clone -b ${STACKS_API_VERSION} --depth 1 https://github.com/${STACKS_API_REPO} . \ && git clone -b ${STACKS_API_VERSION} --depth 1 https://github.com/${STACKS_API_REPO} . \
&& echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env \ && echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env \
&& npm config set unsafe-perm true \ && npm config set unsafe-perm true \
&& npm install \ && npm ci \
&& npm run build \ && npm run build \
&& npm prune --production && npm prune --production

18841
docs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -35,27 +35,27 @@
"entities/**/*" "entities/**/*"
], ],
"devDependencies": { "devDependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.7", "@apidevtools/json-schema-ref-parser": "9.0.7",
"@types/json-schema-merge-allof": "^0.6.0", "@types/json-schema-merge-allof": "0.6.0",
"ajv": "^6.12.2", "ajv": "6.12.6",
"chalk": "^4.0.0", "chalk": "4.1.1",
"del": "^5.1.0", "del": "5.1.0",
"glob": "^7.1.6", "glob": "7.1.6",
"gulp": "^4.0.2", "gulp": "4.0.2",
"gulp-gh-pages": "^0.6.0-6", "gulp-gh-pages": "0.6.0-6",
"gulp-jsonschema-deref": "0.0.3", "gulp-jsonschema-deref": "0.0.3",
"ibm-openapi-validator": "^0.27.1", "ibm-openapi-validator": "0.27.1",
"json-schema": "^0.2.5", "json-schema": "0.2.5",
"json-schema-merge-allof": "^0.7.0", "json-schema-merge-allof": "0.7.0",
"json-schema-to-typescript": "^10.1.4", "json-schema-to-typescript": "10.1.4",
"jsonlint-cli": "^1.0.1", "jsonlint-cli": "1.0.1",
"npm-run-all": "^4.1.5", "npm-run-all": "4.1.5",
"openapi-to-postmanv2": "^2.13.0", "openapi-to-postmanv2": "2.13.0",
"redoc-cli": "^0.9.8", "redoc-cli": "0.13.16",
"shx": "^0.3.3", "shx": "0.3.3",
"speccy": "^0.11.0", "speccy": "0.11.0",
"ts-node": "^9.1.1", "ts-node": "9.1.1",
"typescript": "^4.2.4", "typescript": "4.2.4",
"yaml-lint": "^1.2.4" "yaml-lint": "1.2.4"
} }
} }

45
package-lock.json generated
View File

@@ -49,7 +49,7 @@
"pg": "8.7.1", "pg": "8.7.1",
"pg-copy-streams": "5.1.1", "pg-copy-streams": "5.1.1",
"pg-cursor": "2.7.1", "pg-cursor": "2.7.1",
"postgres": "github:porsager/postgres#master", "postgres": "3.2.4",
"prom-client": "14.0.1", "prom-client": "14.0.1",
"rpc-bitcoin": "2.0.0", "rpc-bitcoin": "2.0.0",
"socket.io": "4.4.0", "socket.io": "4.4.0",
@@ -1536,6 +1536,22 @@
"@octokit/types": "^6.0.3" "@octokit/types": "^6.0.3"
} }
}, },
"node_modules/@octokit/core": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"dev": true,
"peer": true,
"dependencies": {
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
"@octokit/request": "^5.6.3",
"@octokit/request-error": "^2.0.5",
"@octokit/types": "^6.0.3",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
}
},
"node_modules/@octokit/endpoint": { "node_modules/@octokit/endpoint": {
"version": "6.0.12", "version": "6.0.12",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
@@ -9870,9 +9886,9 @@
} }
}, },
"node_modules/postgres": { "node_modules/postgres": {
"version": "3.1.0", "version": "3.2.4",
"resolved": "git+ssh://git@github.com/porsager/postgres.git#28512bf22a3e8372f013553ddbed2d13fbd08ff9", "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.2.4.tgz",
"license": "Unlicense", "integrity": "sha512-iscysD+ZlM4A9zj0RS2zo3f4Us4yuov94Yx+p3dE1rEARaBHC8R3/gRq40KEnWp1lxjuFq9EjuAenIUsPaTaDA==",
"funding": { "funding": {
"type": "individual", "type": "individual",
"url": "https://github.com/sponsors/porsager" "url": "https://github.com/sponsors/porsager"
@@ -13888,6 +13904,22 @@
"@octokit/types": "^6.0.3" "@octokit/types": "^6.0.3"
} }
}, },
"@octokit/core": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"dev": true,
"peer": true,
"requires": {
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
"@octokit/request": "^5.6.3",
"@octokit/request-error": "^2.0.5",
"@octokit/types": "^6.0.3",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
}
},
"@octokit/endpoint": { "@octokit/endpoint": {
"version": "6.0.12", "version": "6.0.12",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
@@ -20325,8 +20357,9 @@
} }
}, },
"postgres": { "postgres": {
"version": "git+ssh://git@github.com/porsager/postgres.git#28512bf22a3e8372f013553ddbed2d13fbd08ff9", "version": "3.2.4",
"from": "postgres@github:porsager/postgres#master" "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.2.4.tgz",
"integrity": "sha512-iscysD+ZlM4A9zj0RS2zo3f4Us4yuov94Yx+p3dE1rEARaBHC8R3/gRq40KEnWp1lxjuFq9EjuAenIUsPaTaDA=="
}, },
"postgres-array": { "postgres-array": {
"version": "2.0.0", "version": "2.0.0",

View File

@@ -23,7 +23,7 @@
"generate:git-info": "node ./git-info-generator.mjs", "generate:git-info": "node ./git-info-generator.mjs",
"build": "npm run generate:git-info && rimraf ./lib && tsc -p tsconfig.build.json", "build": "npm run generate:git-info && rimraf ./lib && tsc -p tsconfig.build.json",
"build:tests": "tsc -p tsconfig.json", "build:tests": "tsc -p tsconfig.json",
"build:docs": "npm i --prefix docs && npm run build --prefix docs && npm i --prefix client && npm run generate:docs --prefix client", "build:docs": "npm ci --prefix docs && npm run build --prefix docs && npm ci --prefix client && npm run generate:docs --prefix client",
"start": "node ./lib/index.js", "start": "node ./lib/index.js",
"lint": "npm run lint:eslint && npm run lint:prettier", "lint": "npm run lint:eslint && npm run lint:prettier",
"lint:unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=src/migrations/*", "lint:unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=src/migrations/*",
@@ -62,7 +62,7 @@
"@semantic-release/exec", "@semantic-release/exec",
{ {
"execCwd": "client", "execCwd": "client",
"prepareCmd": "npm install" "prepareCmd": "npm ci"
} }
], ],
[ [
@@ -133,7 +133,7 @@
"pg": "8.7.1", "pg": "8.7.1",
"pg-copy-streams": "5.1.1", "pg-copy-streams": "5.1.1",
"pg-cursor": "2.7.1", "pg-cursor": "2.7.1",
"postgres": "github:porsager/postgres#master", "postgres": "3.2.4",
"prom-client": "14.0.1", "prom-client": "14.0.1",
"rpc-bitcoin": "2.0.0", "rpc-bitcoin": "2.0.0",
"socket.io": "4.4.0", "socket.io": "4.4.0",

View File

@@ -4,7 +4,7 @@
"description": "Utility script to build and upload the Stacks Blockchain core node from source.", "description": "Utility script to build and upload the Stacks Blockchain core node from source.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "npm i && node index.js", "start": "npm ci && node index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",