Skip to content
Snippets Groups Projects
Verified Commit c478f47e authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Bump wax and beekeeper versions

parent c86a48da
No related branches found
No related tags found
1 merge request!26Bump wax and beekeeper versions
Pipeline #114426 failed
// We only want to import types here! // We only want to import types here!
import type beekeeperFactoryType from "@hiveio/beekeeper/web"; import type beekeeperFactoryType from "@hiveio/beekeeper/web";
import type WorkerBee from "../../dist/bundle/web-full.js"; import type WorkerBee from "../../dist/bundle/index";
export type TEnvType = "web" | "node"; export type TEnvType = "web" | "node";
......
// Use function as we later extract the function name in the jest-helpers // Use function as we later extract the function name in the jest-helpers
globalThis.createTestFor = async function createTestFor(env) { globalThis.createTestFor = async function createTestFor(env) {
const locWorkerBee = env === "web" ? "../../dist/bundle/web-full.js" : "../../dist/bundle/index.js"; const locWorkerBee = env === "web" ? "../../dist/bundle/index.js" : "../../dist/bundle/index.js";
const locBeekeeper = env === "web" ? "@hiveio/beekeeper/web" : "@hiveio/beekeeper/node"; const locBeekeeper = env === "web" ? "@hiveio/beekeeper/web" : "@hiveio/beekeeper/node";
// Import required libraries env-dependent // Import required libraries env-dependent
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script type="importmap"> <script type="importmap">
{ {
"imports": { "imports": {
"../../dist/bundle/web-full.js": "/dist/bundle/web-full.js", "@hiveio/wax": "/node_modules/@hiveio/wax/wasm/dist/bundle/web.js",
"@hiveio/beekeeper/web": "/node_modules/@hiveio/beekeeper/dist/bundle/web.js" "@hiveio/beekeeper/web": "/node_modules/@hiveio/beekeeper/dist/bundle/web.js"
} }
} }
......
...@@ -65,21 +65,15 @@ ...@@ -65,21 +65,15 @@
"typescript": "5.6.3" "typescript": "5.6.3"
}, },
"dependencies": { "dependencies": {
"@hiveio/beekeeper": "1.27.6-rc4", "@hiveio/beekeeper": "1.27.8-stable.250131103618",
"@hiveio/wax": "1.27.6-rc6-250109101012" "@hiveio/wax": "1.27.6-rc7-stable.250131113706"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitlab.syncad.com/hive/workerbee.git" "url": "https://gitlab.syncad.com/hive/workerbee.git"
}, },
"engines": { "engines": {
"node": ">= 18" "node": "^20.11 || >= 21.2"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "^18.18.0 || ^20.9.0 || >=21.1.0"
}
}, },
"publishConfig": { "publishConfig": {
"registry": "https://RegistryPlaceholder", "registry": "https://RegistryPlaceholder",
......
...@@ -9,11 +9,11 @@ importers: ...@@ -9,11 +9,11 @@ importers:
.: .:
dependencies: dependencies:
'@hiveio/beekeeper': '@hiveio/beekeeper':
specifier: 1.27.6-rc4 specifier: 1.27.8-stable.250131103618
version: 1.27.6-rc4 version: 1.27.8-stable.250131103618
'@hiveio/wax': '@hiveio/wax':
specifier: 1.27.6-rc6-250109101012 specifier: 1.27.6-rc7-stable.250131113706
version: 1.27.6-rc6-250109101012 version: 1.27.6-rc7-stable.250131113706
devDependencies: devDependencies:
'@eslint/compat': '@eslint/compat':
specifier: ^1.2.2 specifier: ^1.2.2
...@@ -161,13 +161,13 @@ packages: ...@@ -161,13 +161,13 @@ packages:
'@gar/promisify@1.1.3': '@gar/promisify@1.1.3':
resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==} resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==}
'@hiveio/beekeeper@1.27.6-rc4': '@hiveio/beekeeper@1.27.8-stable.250131103618':
resolution: {integrity: sha1-mj3k3qAgTdIrc6IxzC5VOprhWZs=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.6-rc4.tgz} resolution: {integrity: sha1-0IYuFBbxIIKfRTrI6ZZc7Jf+qLA=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.8-stable.250131103618.tgz}
engines: {node: '>= 18'} engines: {node: ^20.11 || >= 21.2}
'@hiveio/wax@1.27.6-rc6-250109101012': '@hiveio/wax@1.27.6-rc7-stable.250131113706':
resolution: {integrity: sha1-jr+jSTmhT1/S1rlE5B46KF5zpP8=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc6-250109101012.tgz} resolution: {integrity: sha1-Xi2VV8y9T6MdBHOBSzxZNpmGnF8=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc7-stable.250131113706.tgz}
engines: {node: '>= 18'} engines: {node: ^20.11 || >= 21.2}
'@humanfs/core@0.19.1': '@humanfs/core@0.19.1':
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
...@@ -472,9 +472,6 @@ packages: ...@@ -472,9 +472,6 @@ packages:
'@types/unist@3.0.3': '@types/unist@3.0.3':
resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
'@types/validator@13.11.7':
resolution: {integrity: sha512-q0JomTsJ2I5Mv7dhHhQLGjMvX0JJm5dyZ1DXQySIUzU1UlwzB8bt+R6+LODUbz0UDIOvEzGc28tk27gBJw2N8Q==}
'@typescript-eslint/eslint-plugin@8.13.0': '@typescript-eslint/eslint-plugin@8.13.0':
resolution: {integrity: sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==} resolution: {integrity: sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
...@@ -734,12 +731,6 @@ packages: ...@@ -734,12 +731,6 @@ packages:
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
engines: {node: '>=10'} engines: {node: '>=10'}
class-transformer@0.5.1:
resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==}
class-validator@0.14.0:
resolution: {integrity: sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==}
clean-stack@2.2.0: clean-stack@2.2.0:
resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==}
engines: {node: '>=6'} engines: {node: '>=6'}
...@@ -1579,9 +1570,6 @@ packages: ...@@ -1579,9 +1570,6 @@ packages:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
libphonenumber-js@1.10.50:
resolution: {integrity: sha512-AOYOJslxKQ49mpwvpkSFcagoMtxeH1UpUHm+05pmPkenPpFbt6ofdeEvQ+ZylmQiJS99ocRWeEeEp7quVlFyVA==}
lilconfig@3.0.0: lilconfig@3.0.0:
resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==} resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==}
engines: {node: '>=14'} engines: {node: '>=14'}
...@@ -2062,9 +2050,6 @@ packages: ...@@ -2062,9 +2050,6 @@ packages:
resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
reflect-metadata@0.1.14:
resolution: {integrity: sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A==}
regex@4.4.0: regex@4.4.0:
resolution: {integrity: sha512-uCUSuobNVeqUupowbdZub6ggI5/JZkYyJdDogddJr60L764oxC2pMZov1fQ3wM9bdyzUILDG+Sqx6NAKAz9rKQ==} resolution: {integrity: sha512-uCUSuobNVeqUupowbdZub6ggI5/JZkYyJdDogddJr60L764oxC2pMZov1fQ3wM9bdyzUILDG+Sqx6NAKAz9rKQ==}
...@@ -2492,10 +2477,6 @@ packages: ...@@ -2492,10 +2477,6 @@ packages:
resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
validator@13.11.0:
resolution: {integrity: sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==}
engines: {node: '>= 0.10'}
vfile-message@4.0.2: vfile-message@4.0.2:
resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==}
...@@ -2644,16 +2625,13 @@ snapshots: ...@@ -2644,16 +2625,13 @@ snapshots:
'@gar/promisify@1.1.3': {} '@gar/promisify@1.1.3': {}
'@hiveio/beekeeper@1.27.6-rc4': {} '@hiveio/beekeeper@1.27.8-stable.250131103618': {}
'@hiveio/wax@1.27.6-rc6-250109101012': '@hiveio/wax@1.27.6-rc7-stable.250131113706':
dependencies: dependencies:
'@hiveio/beekeeper': 1.27.6-rc4 '@hiveio/beekeeper': 1.27.8-stable.250131103618
class-transformer: 0.5.1
class-validator: 0.14.0
events: 3.3.0 events: 3.3.0
long: 5.2.3 long: 5.2.3
reflect-metadata: 0.1.14
'@humanfs/core@0.19.1': {} '@humanfs/core@0.19.1': {}
...@@ -2991,8 +2969,6 @@ snapshots: ...@@ -2991,8 +2969,6 @@ snapshots:
'@types/unist@3.0.3': {} '@types/unist@3.0.3': {}
'@types/validator@13.11.7': {}
'@typescript-eslint/eslint-plugin@8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0)(typescript@5.6.3))(eslint@9.14.0)(typescript@5.6.3)': '@typescript-eslint/eslint-plugin@8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0)(typescript@5.6.3))(eslint@9.14.0)(typescript@5.6.3)':
dependencies: dependencies:
'@eslint-community/regexpp': 4.10.0 '@eslint-community/regexpp': 4.10.0
...@@ -3342,14 +3318,6 @@ snapshots: ...@@ -3342,14 +3318,6 @@ snapshots:
chownr@2.0.0: {} chownr@2.0.0: {}
class-transformer@0.5.1: {}
class-validator@0.14.0:
dependencies:
'@types/validator': 13.11.7
libphonenumber-js: 1.10.50
validator: 13.11.0
clean-stack@2.2.0: {} clean-stack@2.2.0: {}
cli-cursor@4.0.0: cli-cursor@4.0.0:
...@@ -4322,8 +4290,6 @@ snapshots: ...@@ -4322,8 +4290,6 @@ snapshots:
prelude-ls: 1.2.1 prelude-ls: 1.2.1
type-check: 0.4.0 type-check: 0.4.0
libphonenumber-js@1.10.50: {}
lilconfig@3.0.0: {} lilconfig@3.0.0: {}
linkify-it@5.0.0: linkify-it@5.0.0:
...@@ -4915,8 +4881,6 @@ snapshots: ...@@ -4915,8 +4881,6 @@ snapshots:
string_decoder: 1.3.0 string_decoder: 1.3.0
util-deprecate: 1.0.2 util-deprecate: 1.0.2
reflect-metadata@0.1.14: {}
regex@4.4.0: {} regex@4.4.0: {}
regexp.prototype.flags@1.5.1: regexp.prototype.flags@1.5.1:
...@@ -5447,8 +5411,6 @@ snapshots: ...@@ -5447,8 +5411,6 @@ snapshots:
validate-npm-package-name@5.0.1: {} validate-npm-package-name@5.0.1: {}
validator@13.11.0: {}
vfile-message@4.0.2: vfile-message@4.0.2:
dependencies: dependencies:
'@types/unist': 3.0.3 '@types/unist': 3.0.3
......
...@@ -3,34 +3,29 @@ import commonjs from "@rollup/plugin-commonjs"; ...@@ -3,34 +3,29 @@ import commonjs from "@rollup/plugin-commonjs";
import { nodeResolve } from "@rollup/plugin-node-resolve"; import { nodeResolve } from "@rollup/plugin-node-resolve";
import dts from "rollup-plugin-dts"; import dts from "rollup-plugin-dts";
const commonConfiguration = (packEntire = false) => ([ export default [
{ {
input: "dist/index.js", input: "dist/index.js",
output: { output: {
format: "es", format: "es",
name: "workerbee", name: "workerbee",
file: `dist/bundle/${packEntire ? "web-full" : "index"}.js` file: "dist/bundle/index.js"
}, },
plugins: [ plugins: [
nodeResolve({ nodeResolve({
preferBuiltins: false, preferBuiltins: false,
browser: true, browser: false,
resolveOnly: packEntire ? [] : () => false resolveOnly: () => false
}), }),
commonjs() commonjs()
] ]
}, { }, {
input: "dist/index.d.ts", input: "dist/index.d.ts",
output: [ output: [
{ file: `dist/bundle/${packEntire ? "web-full" : "index"}.d.ts`, format: "es" } { file: "dist/bundle/index.d.ts", format: "es" }
], ],
plugins: [ plugins: [
dts() dts()
] ]
} }
]);
export default [
...commonConfiguration(),
...commonConfiguration(true)
]; ];
...@@ -78,7 +78,7 @@ export class WorkerBee implements IWorkerBee { ...@@ -78,7 +78,7 @@ export class WorkerBee implements IWorkerBee {
throw new WorkerBeeError("You are trying to broadcast transaction without signing!"); throw new WorkerBeeError("You are trying to broadcast transaction without signing!");
if(typeof options.throwAfter === "undefined") { if(typeof options.throwAfter === "undefined") {
const expiration = calculateExpiration(new Date(), toBroadcast.expiration); const expiration = calculateExpiration(toBroadcast.expiration, new Date());
if(typeof expiration === "undefined") if(typeof expiration === "undefined")
throw new WorkerBeeError("Could not deduce the expiration time of the transaction"); throw new WorkerBeeError("Could not deduce the expiration time of the transaction");
...@@ -89,7 +89,7 @@ export class WorkerBee implements IWorkerBee { ...@@ -89,7 +89,7 @@ export class WorkerBee implements IWorkerBee {
await this.chain!.broadcast(toBroadcast); await this.chain!.broadcast(toBroadcast);
// Here options.throwAfter should be defined (throws on invalid value) // Here options.throwAfter should be defined (throws on invalid value)
const expireDate: Date = calculateExpiration(new Date(), options.throwAfter) as Date; const expireDate: Date = calculateExpiration(options.throwAfter, new Date()) as Date;
const apiTx = this.chain!.createTransactionFromJson(toBroadcast); const apiTx = this.chain!.createTransactionFromJson(toBroadcast);
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"paths": {}, "paths": {},
"outDir": "./dist", "outDir": "./dist",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"removeComments": false, "removeComments": false,
"incremental": true, "incremental": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment