@leather.io/utils 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @leather.io/utils@0.12.0 build /home/runner/work/mono/mono/packages/utils
2
+ > @leather.io/utils@0.13.0 build /home/runner/work/mono/mono/packages/utils
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -7,11 +7,10 @@ CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.1.0
8
8
  CLI Using tsup config: /home/runner/work/mono/mono/packages/utils/tsup.config.ts
9
9
  CLI Target: es2022
10
- CLI Cleaning output folder
11
10
  ESM Build start
12
11
  ESM dist/index.js 14.06 KB
13
12
  ESM dist/index.js.map 27.14 KB
14
- ESM ⚡️ Build success in 21ms
13
+ ESM ⚡️ Build success in 20ms
15
14
  DTS Build start
16
- DTS ⚡️ Build success in 1473ms
17
- DTS dist/index.d.ts 6.87 KB
15
+ DTS ⚡️ Build success in 1784ms
16
+ DTS dist/index.d.ts 6.86 KB
package/CHANGELOG.md CHANGED
@@ -72,6 +72,46 @@
72
72
  * @leather.io/models bumped to 0.11.0
73
73
  * @leather.io/rpc bumped to 2.1.2
74
74
 
75
+ ## [0.13.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.12.1...@leather.io/utils-v0.13.0) (2024-08-15)
76
+
77
+
78
+ ### Features
79
+
80
+ * upgrade pkgs ([c091981](https://github.com/leather-io/mono/commit/c09198150ed429989d920d6350ad43d0ff4cfe5c))
81
+
82
+
83
+ ### Bug Fixes
84
+
85
+ * husky for commitlint only ([ce93a4b](https://github.com/leather-io/mono/commit/ce93a4bc95fbb5128288558ffbeebfccfded38ef))
86
+
87
+
88
+ ### Dependencies
89
+
90
+ * The following workspace dependencies were updated
91
+ * dependencies
92
+ * @leather.io/constants bumped to 0.9.0
93
+ * @leather.io/models bumped to 0.12.0
94
+ * @leather.io/rpc bumped to 2.1.4
95
+ * devDependencies
96
+ * @leather.io/prettier-config bumped to 0.6.0
97
+ * @leather.io/tsconfig-config bumped to 0.6.0
98
+
99
+ ## [0.12.1](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.12.0...@leather.io/utils-v0.12.1) (2024-08-14)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * improve watch mode ([38e257c](https://github.com/leather-io/mono/commit/38e257c31384ba96b521164891c65016baa12a19))
105
+
106
+
107
+ ### Dependencies
108
+
109
+ * The following workspace dependencies were updated
110
+ * dependencies
111
+ * @leather.io/constants bumped to 0.8.3
112
+ * @leather.io/models bumped to 0.11.1
113
+ * @leather.io/rpc bumped to 2.1.3
114
+
75
115
  ## [0.12.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.11.1...@leather.io/utils-v0.12.0) (2024-08-08)
76
116
 
77
117
 
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ declare function noop(): void;
83
83
  declare function ensureArray<T>(value: T | T[]): T[];
84
84
  declare function undefinedIfLengthZero<T extends any[]>(arr: T): T | undefined;
85
85
  type NetworkMap<T> = Record<NetworkModes, T>;
86
- declare function whenNetwork(mode: NetworkModes): <T extends NetworkMap<unknown>>(networkMap: T) => T["mainnet" | "testnet"];
86
+ declare function whenNetwork(mode: NetworkModes): <T extends NetworkMap<unknown>>(networkMap: T) => T[NetworkModes];
87
87
  declare function isEmptyArray(data: unknown[]): boolean;
88
88
  declare const defaultWalletKeyId: "default";
89
89
  declare function reverseBytes(bytes: Buffer): Buffer;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@leather.io/utils",
3
3
  "author": "Leather.io contact@leather.io",
4
4
  "description": "Shared bitcoin utilities",
5
- "version": "0.12.0",
5
+ "version": "0.13.0",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/leather-io/mono/tree/dev/packages/utils",
8
8
  "repository": {
@@ -17,20 +17,20 @@
17
17
  "bugs": "https://github.com/leather-io/mono/issues",
18
18
  "dependencies": {
19
19
  "bignumber.js": "9.1.2",
20
- "@leather.io/rpc": "2.1.2",
21
- "@leather.io/constants": "0.8.2",
22
- "@leather.io/models": "0.11.0"
20
+ "@leather.io/constants": "0.9.0",
21
+ "@leather.io/rpc": "2.1.4",
22
+ "@leather.io/models": "0.12.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitest/coverage-istanbul": "0.34.6",
26
26
  "eslint": "8.53.0",
27
- "prettier": "3.3.0",
27
+ "prettier": "3.3.3",
28
28
  "tsup": "8.1.0",
29
- "typescript": "5.4.5",
30
- "vitest": "2.0.3",
29
+ "typescript": "5.5.4",
30
+ "vitest": "2.0.5",
31
31
  "@leather.io/eslint-config": "0.6.1",
32
- "@leather.io/tsconfig-config": "0.5.1",
33
- "@leather.io/prettier-config": "0.5.0"
32
+ "@leather.io/prettier-config": "0.6.0",
33
+ "@leather.io/tsconfig-config": "0.6.0"
34
34
  },
35
35
  "keywords": [
36
36
  "leather",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsup",
46
- "build:watch": "tsup --watch",
46
+ "build:watch": "tsup --watch --onSuccess 'tsup --dts-only'",
47
47
  "format": "prettier . --write --ignore-path ../../.prettierignore",
48
48
  "format:check": "prettier . --check --ignore-path ../../.prettierignore",
49
49
  "lint": "eslint . --ignore-path ../../.eslintignore",
package/tsup.config.ts CHANGED
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsup';
3
3
  export default defineConfig({
4
4
  entry: ['src/index.ts'],
5
5
  sourcemap: true,
6
- clean: true,
6
+ clean: false,
7
7
  dts: true,
8
8
  format: 'esm',
9
9
  });