node-osc 11.3.0 → 11.4.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-osc",
3
3
  "description": "pyOSC inspired library for sending and receiving OSC messages",
4
- "version": "11.3.0",
4
+ "version": "11.4.0",
5
5
  "exports": {
6
6
  "types": "./types/index.d.mts",
7
7
  "require": "./dist/lib/index.js",
@@ -53,6 +53,6 @@
53
53
  "jsdoc": "^4.0.5",
54
54
  "rollup": "^4.46.2",
55
55
  "tap": "^21.1.0",
56
- "typescript": "^5.9.3"
56
+ "typescript": "^6.0.2"
57
57
  }
58
58
  }
@@ -2,11 +2,11 @@
2
2
  "compilerOptions": {
3
3
  "noEmit": true,
4
4
  "skipLibCheck": true,
5
- "module": "commonjs",
5
+ "module": "preserve",
6
6
  "esModuleInterop": true,
7
7
  "target": "ES2022",
8
- "moduleResolution": "node",
9
- "baseUrl": ".",
8
+ "moduleResolution": "bundler",
9
+ "types": ["node"],
10
10
  "paths": {
11
11
  "node-osc": ["../../../types/index.d.mts"]
12
12
  }
@@ -5,8 +5,9 @@
5
5
  "esModuleInterop": true,
6
6
  "module": "ES2022",
7
7
  "target": "ES2022",
8
- "moduleResolution": "node",
9
- "baseUrl": ".",
8
+ "moduleResolution": "bundler",
9
+ "types": ["node"],
10
+ "rootDir": ".",
10
11
  "paths": {
11
12
  "node-osc": ["../../../types/index.d.mts"]
12
13
  }
package/tsconfig.json CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  // Module settings for ESM (will generate .d.mts files)
16
16
  "module": "ES2022",
17
- "moduleResolution": "node",
17
+ "moduleResolution": "bundler",
18
18
  "target": "ES2022",
19
19
 
20
20
  // Allow default imports from modules with no default export
@@ -24,12 +24,17 @@
24
24
  // Strict options for better type inference
25
25
  "strict": false,
26
26
  "skipLibCheck": true,
27
+
28
+ // Include Node.js types so EventEmitter inheritance is resolved in generated declarations
29
+ "types": ["node"],
27
30
 
28
31
  // Resolve JSON modules
29
32
  "resolveJsonModule": true,
30
33
 
31
- // Base URL for paths
32
- "baseUrl": ".",
34
+ // Explicit rootDir since TypeScript 6.0 no longer infers it
35
+ "rootDir": "./lib",
36
+
37
+ // Use explicit paths relative to root (no baseUrl needed in TS 6.0)
33
38
  "paths": {
34
39
  "#decode": ["./lib/internal/decode.mjs"]
35
40
  }