ableton-js 4.0.0 → 4.0.3

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.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,25 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [v4.0.0](https://github.com/leolabs/ableton.js/compare/v3.7.3...v4.0.0)
7
+ #### [v4.0.3](https://github.com/leolabs/ableton.js/compare/v4.0.2...v4.0.3)
8
+
9
+ - :wrench: Replace version in `package-version.ts` file before it gets compiled [`a68bbb5`](https://github.com/leolabs/ableton.js/commit/a68bbb562809fb368172ae56939e50000ceb48eb)
10
+
11
+ #### [v4.0.2](https://github.com/leolabs/ableton.js/compare/v4.0.1...v4.0.2)
12
+
13
+ > 9 December 2025
14
+
15
+ - :bug: Fix lodash import [`9b32a0b`](https://github.com/leolabs/ableton.js/commit/9b32a0b62044afd3eb8901612ad6a34a088b68e1)
16
+
17
+ #### [v4.0.1](https://github.com/leolabs/ableton.js/compare/v4.0.0...v4.0.1)
18
+
19
+ > 9 December 2025
20
+
21
+ - :wrench: Properly make ns and util files available for importing [`c68cf19`](https://github.com/leolabs/ableton.js/commit/c68cf19d0f7a0bafbde08203b548128c1ee2f324)
22
+
23
+ ### [v4.0.0](https://github.com/leolabs/ableton.js/compare/v3.7.3...v4.0.0)
24
+
25
+ > 9 December 2025
8
26
 
9
27
  - :bug: Fix Vitest not working with new ESM import syntax [`405bd76`](https://github.com/leolabs/ableton.js/commit/405bd76df064e3f085824b3e48098adbde6f1b88)
10
28
  - :truck: Switch the library to ESM [`cf382ff`](https://github.com/leolabs/ableton.js/commit/cf382ff905fcde275ae805e0ca93f55d29aa7679)
@@ -15,6 +15,6 @@ const replaced = file
15
15
 
16
16
  fs.writeFileSync(internalPath, replaced);
17
17
  fs.writeFileSync(
18
- path.join(rootPath, "util", "package-version.js"),
18
+ path.join(rootPath, "src", "util", "package-version.ts"),
19
19
  `export const packageVersion = "${packageJson.version}";`,
20
20
  );
package/index.d.ts CHANGED
@@ -161,4 +161,4 @@ export declare class Ableton extends EventEmitter<EventMap> {
161
161
  sendRaw(msg: string, messageId: number): Promise<void>;
162
162
  isConnected(): boolean;
163
163
  }
164
- export { packageVersion } from "./util/package-version.js";
164
+ export * from "./util/package-version.js";
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import os from "node:os";
2
2
  import path from "node:path";
3
3
  import dgram from "node:dgram";
4
- import { truncate } from "lodash";
4
+ import truncate from "lodash/truncate.js";
5
5
  import { EventEmitter } from "events";
6
6
  import { v4 } from "uuid";
7
7
  import semver from "semver";
@@ -491,4 +491,4 @@ export class Ableton extends EventEmitter {
491
491
  return this._isConnected;
492
492
  }
493
493
  }
494
- export { packageVersion } from "./util/package-version.js";
494
+ export * from "./util/package-version.js";
@@ -1 +1 @@
1
- version = "4.0.0"
1
+ version = "4.0.3"
package/package.json CHANGED
@@ -1,11 +1,25 @@
1
1
  {
2
2
  "name": "ableton-js",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "description": "Control Ableton Live from Node",
5
5
  "type": "module",
6
6
  "exports": {
7
- "types": "./index.d.ts",
8
- "default": "./index.js"
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "default": "./index.js"
10
+ },
11
+ "./ns/*": "./ns/*.js",
12
+ "./util/*": "./util/*.js"
13
+ },
14
+ "typesVersions": {
15
+ "*": {
16
+ "ns/*": [
17
+ "ns/*.d.ts"
18
+ ],
19
+ "util/*": [
20
+ "util/*.d.ts"
21
+ ]
22
+ }
9
23
  },
10
24
  "author": "Leo Bernard <admin@leolabs.org>",
11
25
  "license": "MIT",
@@ -34,7 +48,7 @@
34
48
  "ableton12:start": "yarn ableton:kill; yarn ableton:clean && yarn ableton:copy-script && yarn ableton12:launch && yarn ableton:logs",
35
49
  "prepublishOnly": "yarn build",
36
50
  "build:doc": "jsdoc2md --files src/**/*.ts --configure ./jsdoc2md.json > ./API.md",
37
- "version": "node hooks/prepublish.js && git add midi-script/version.py && auto-changelog -p -l 100 && git add CHANGELOG.md",
51
+ "version": "node hooks/prepublish.js && git add src/util/package-version.ts && git add midi-script/version.py && auto-changelog -p -l 100 && git add CHANGELOG.md",
38
52
  "build": "tsc",
39
53
  "test": "vitest --run",
40
54
  "format": "prettier -w src/"
@@ -1 +1 @@
1
- export declare const packageVersion = "0.0.0";
1
+ export declare const packageVersion = "4.0.3";
@@ -1 +1 @@
1
- export const packageVersion = "0.0.0";
1
+ export const packageVersion = "4.0.3";