node-osc 9.1.7 → 10.0.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.
@@ -40,7 +40,7 @@ jobs:
40
40
  - name: Setup Node.js
41
41
  uses: actions/setup-node@v4
42
42
  with:
43
- node-version: 20
43
+ node-version: 22
44
44
  cache: 'npm'
45
45
 
46
46
  - name: Install npm packages
@@ -21,15 +21,15 @@ jobs:
21
21
  - name: Setup node
22
22
  uses: actions/setup-node@v4
23
23
  with:
24
- node-version: 20
24
+ node-version: 22
25
25
  registry-url: 'https://registry.npmjs.org'
26
26
  cache: npm
27
- - name: Install npm from npm/oidc branch
28
- run: curl -fsSL https://raw.githubusercontent.com/npm/cli/refs/heads/oidc-install/install.sh | bash
27
+ - name: Install latest npm
28
+ run: npm i -g npm
29
29
  - name: Install dependencies and build
30
30
  run: npm ci
31
31
  - name: Publish package
32
- run: npm publish --provenance
32
+ run: npm publish
33
33
 
34
34
  create-github-release:
35
35
  name: Create GitHub Release
@@ -11,7 +11,7 @@ jobs:
11
11
  run-tests:
12
12
  strategy:
13
13
  matrix:
14
- node-version: ['22', '20', '18']
14
+ node-version: ['24', '22', '20']
15
15
  os: [ubuntu-latest, macos-latest, windows-latest]
16
16
 
17
17
  runs-on: ${{ matrix.os }}
package/examples/esm.mjs CHANGED
@@ -7,8 +7,8 @@ server.on('listening', () => {
7
7
  console.log('OSC Server is Listening');
8
8
  });
9
9
 
10
- server.on('message', (msg) => {
11
- console.log(`Message: ${msg}`);
10
+ server.on('message', (msg, rinfo) => {
11
+ console.log(`Message: ${msg}\nReceived from: ${rinfo.address}:${rinfo.port}`);
12
12
  server.close();
13
13
  });
14
14
 
@@ -3,7 +3,7 @@ var { Server } = require('node-osc');
3
3
 
4
4
  var oscServer = new Server(3333, '0.0.0.0');
5
5
 
6
- oscServer.on('message', function (msg) {
7
- console.log(`Message: ${msg}`);
6
+ oscServer.on('message', function (msg, rinfo) {
7
+ console.log(`Message: ${msg}\nReceived from: ${rinfo.address}:${rinfo.port}`);
8
8
  oscServer.close();
9
9
  });
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": "9.1.7",
4
+ "version": "10.0.0",
5
5
  "exports": {
6
6
  "require": "./dist/lib/index.js",
7
7
  "default": "./lib/index.mjs"
@@ -17,7 +17,7 @@
17
17
  "email": "myles.borins@gmail.com"
18
18
  },
19
19
  "engines": {
20
- "node": "^18.17.0 || ^20.5.0 || >=22.0.0"
20
+ "node": "^20.9.0 || ^22.11.0 || >=24.0.0"
21
21
  },
22
22
  "license": "LGPL-3.0-or-later",
23
23
  "scripts": {
@@ -46,10 +46,10 @@
46
46
  "osc-min": "^1.1.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "^9.4.0",
50
- "eslint": "^9.4.0",
51
- "globals": "^16.0.0",
52
- "rollup": "^4.18.0",
49
+ "@eslint/js": "^9.32.0",
50
+ "eslint": "^9.32.0",
51
+ "globals": "^16.3.0",
52
+ "rollup": "^4.46.2",
53
53
  "tap": "^21.1.0"
54
54
  }
55
55
  }