Skip to content

Commit 292c14c

Browse files
authored
refactor: bump dependencies (#355)
* refactor: replace `parse` with `parseArgs` and update dependencies in examples and configurations - Migrated from `@std/flags` to `@std/cli` across various scripts. - Updated related imports, arguments parsing logic, and versioned dependencies. Signed-off-by: Alberto Ricart <[email protected]> * chore(deps): bump `@types/node` to ^25.0.0 across all packages Signed-off-by: Alberto Ricart <[email protected]> * chore(release): bump all packages to version 3.3.0 Signed-off-by: Alberto Ricart <[email protected]> * chore(workflows): update Deno to 2.6.x, Node to 25.x in CI configurations Signed-off-by: Alberto Ricart <[email protected]> * fix(node_transport): specify `Uint8Array` type for `frame` argument in `socket.on("data")` listener v25, the inferred type changed to string | NonSharedBuffer Signed-off-by: Alberto Ricart <[email protected]> * chore(workflows): update GitHub Actions to use latest versions of `checkout`, `setup-node`, and `setup-deno` Signed-off-by: Alberto Ricart <[email protected]> --------- Signed-off-by: Alberto Ricart <[email protected]>
1 parent 02aebfd commit 292c14c

33 files changed

+91
-96
lines changed

.github/workflows/consistency_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
deno-version: [2.4.x]
11+
deno-version: [2.6.x]
1212
module: [
1313
core,
1414
jetstream,
@@ -21,12 +21,12 @@ jobs:
2121

2222
steps:
2323
- name: Git Checkout Sources
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 1
2727

2828
- name: Install Deno ${{ matrix.deno-version }}
29-
uses: denoland/setup-deno@v1
29+
uses: denoland/setup-deno@v2
3030
with:
3131
deno-version: ${{ matrix.deno-version }}
3232

.github/workflows/deno_checks.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
deno-version: [2.4.x]
11+
deno-version: [2.6.x]
1212
module: [core, jetstream, kv, obj, services, transport-deno]
1313

1414
steps:
1515
- name: Git Checkout Sources
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 1
1919

2020
- name: Install Deno ${{ matrix.deno-version }}
21-
uses: denoland/setup-deno@v1
21+
uses: denoland/setup-deno@v2
2222
with:
2323
deno-version: ${{ matrix.deno-version }}
2424

@@ -27,7 +27,6 @@ jobs:
2727
with:
2828
repo: nats-io/nats-server
2929
name: nats-server
30-
cache: true
3130

3231
- name: Test
3332
env:

.github/workflows/node_checks.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
deno-version: [2.4.x]
12-
node-version: [24.x]
11+
deno-version: [2.6.x]
12+
node-version: [25.x]
1313

1414
steps:
1515
- name: Git Checkout Sources
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 1
1919

2020
- name: Install Deno ${{ matrix.deno-version }}
21-
uses: denoland/setup-deno@v1
21+
uses: denoland/setup-deno@v2
2222
with:
2323
deno-version: ${{ matrix.deno-version }}
2424

@@ -27,10 +27,9 @@ jobs:
2727
with:
2828
repo: nats-io/nats-server
2929
name: nats-server
30-
cache: true
3130

3231
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@v6
3433
with:
3534
node-version: ${{ matrix.node-version }}
3635

.github/workflows/npm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919

2020
steps:
2121
- name: Checkout nats.js
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 1
2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
registry-url: "https://registry.npmjs.org"
3030
- name: Use Deno Version ${{ matrix.deno-version }}
31-
uses: denoland/setup-deno@v1
31+
uses: denoland/setup-deno@v2
3232
with:
3333
deno-version: ${{ matrix.deno-version }}
3434
- name: Set tag

.github/workflows/transport-node-test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ jobs:
1818
test:
1919
strategy:
2020
matrix:
21-
deno-version: [2.4.x]
22-
node-version: [24.x]
21+
deno-version: [2.6.x]
22+
node-version: [25.x]
2323

2424
name: test node transport with local dependencies
2525
runs-on: ubuntu-latest
2626

2727
steps:
2828
- name: Git Checkout Core
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: 1
3232

3333
- name: Use Deno Version ${{ matrix.deno-version }}
34-
uses: denoland/setup-deno@v1
34+
uses: denoland/setup-deno@v2
3535
with:
3636
deno-version: ${{ matrix.deno-version }}
3737

3838
- name: Use Node.js ${{ matrix.node-version }}
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v6
4040
with:
4141
node-version: ${{ matrix.node-version }}
4242

@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
repo: nats-io/nats-server
4747
name: nats-server
48-
cache: true
4948

5049
- name: Build workspace
5150
run: |

.github/workflows/unsafe_checks.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
deno-version: [2.4.x]
11+
deno-version: [2.6.x]
1212

1313
steps:
1414
- name: Git Checkout Sources
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 1
1818

1919
- name: Install Deno ${{ matrix.deno-version }}
20-
uses: denoland/setup-deno@v1
20+
uses: denoland/setup-deno@v2
2121
with:
2222
deno-version: ${{ matrix.deno-version }}
2323

@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
repo: nats-io/nats-server
2828
name: nats-server
29-
cache: true
3029

3130
- name: Test Unsafe
3231
env:

.github/workflows/version_bump.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Clone repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Remove NPM Workspace
1717
run: |
1818
rm -f package.json
1919
2020
- name: Set up Deno
21-
uses: denoland/setup-deno@v1
21+
uses: denoland/setup-deno@v2
2222

2323
- name: Run workspaces version bump
2424
run: |

bin/exports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { parse } from "@std/flags";
16+
import { parseArgs } from "@std/cli";
1717
import { basename, extname, join, resolve } from "@std/path";
1818

19-
const argv = parse(
19+
const argv = parseArgs(
2020
Deno.args,
2121
{},
2222
);

bin/fix-os.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
* See the License for the specific language governing permissions and
1313
* limitations under the License.
1414
*/
15-
import { parse } from "@std/flags";
16-
import { ObjectStoreImpl, ServerObjectInfo } from "../os/objectstore.ts";
15+
import { parseArgs } from "@std/cli";
16+
import { ObjectStoreImpl, ServerObjectInfo } from "../obj/src/objectstore.ts";
1717
import { connect, ConnectionOptions, credsAuthenticator } from "nats-deno";
1818

19-
const argv = parse(
19+
const argv = parseArgs(
2020
Deno.args,
2121
{
2222
alias: {

core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/nats-core",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"

0 commit comments

Comments
 (0)