Skip to content

Commit c29e3e5

Browse files
committed
chore(*): fixed npm packages for transport-node to point to types from lib, removed sources from npm packages
1 parent f4b4cfe commit c29e3e5

25 files changed

+58
-228
lines changed

Diff for: bin/lib/bundle_versions.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,17 @@ export class SemVer {
7070
if (this.micro > b.micro) return 1;
7171
if (this.qualifier === "") return 1;
7272
if (b.qualifier === "") return -1;
73-
return this.qualifier.localeCompare(b.qualifier);
73+
74+
// if we have non-empty qualifiers - we expect them to
75+
const q = parseInt(this.qualifier);
76+
const qq = parseInt(b.qualifier);
77+
78+
if (isNaN(q) || isNaN(qq)) {
79+
return this.qualifier.localeCompare(b.qualifier);
80+
}
81+
if (q < qq) return -1;
82+
if (q > qq) return 1;
83+
return 0;
7484
}
7585

7686
max(b: SemVer): SemVer {

Diff for: core/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

Diff for: core/deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/nats-core",
3-
"version": "3.0.0-20",
3+
"version": "3.0.0-24",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"

Diff for: core/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@nats-io/nats-core",
3-
"version": "3.0.0-20",
3+
"version": "3.0.0-24",
44
"files": [
55
"lib/",
6-
"build/src/",
76
"LICENSE",
87
"README.md"
98
],

Diff for: core/src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This file is generated - do not edit
2-
export const version = "3.0.0-20";
2+
export const version = "3.0.0-24";

Diff for: jetstream/deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/jetstream",
3-
"version": "3.0.0-7",
3+
"version": "3.0.0-9",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"
@@ -33,6 +33,6 @@
3333
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
3434
},
3535
"imports": {
36-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
36+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24"
3737
}
3838
}

Diff for: jetstream/import_map.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"imports": {
33
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
44
"@nats-io/nuid": "jsr:@nats-io/[email protected]",
5-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
6-
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
5+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
6+
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
77
"test_helpers": "../test_helpers/mod.ts",
88
"@std/io": "jsr:@std/[email protected]"
99
}

Diff for: jetstream/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@nats-io/jetstream",
3-
"version": "3.0.0-7",
3+
"version": "3.0.0-9",
44
"files": [
55
"lib/",
6-
"build/src/",
76
"LICENSE",
87
"README.md"
98
],
@@ -33,7 +32,7 @@
3332
},
3433
"description": "jetstream library - this library implements all the base functionality for NATS JetStream for javascript clients",
3534
"dependencies": {
36-
"@nats-io/nats-core": "~3.0.0-20"
35+
"@nats-io/nats-core": "~3.0.0-24"
3736
},
3837
"devDependencies": {
3938
"@types/node": "^22.0.0",

Diff for: kv/deno.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/kv",
3-
"version": "3.0.0-5",
3+
"version": "3.0.0-7",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"
@@ -33,7 +33,7 @@
3333
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
3434
},
3535
"imports": {
36-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
37-
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
36+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
37+
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9"
3838
}
3939
}

Diff for: kv/import_map.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"imports": {
3-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
4-
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
5-
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
6-
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
3+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
4+
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
5+
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9",
6+
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-9/internal",
77
"test_helpers": "../test_helpers/mod.ts",
88
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
99
"@nats-io/nuid": "jsr:@nats-io/[email protected]",

Diff for: kv/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@nats-io/kv",
3-
"version": "3.0.0-5",
3+
"version": "3.0.0-7",
44
"files": [
55
"lib/",
6-
"build/src/",
76
"LICENSE",
87
"README.md"
98
],
@@ -33,8 +32,8 @@
3332
},
3433
"description": "kv library - this library implements all the base functionality for NATS KV javascript clients",
3534
"dependencies": {
36-
"@nats-io/jetstream": "~3.0.0-7",
37-
"@nats-io/nats-core": "~3.0.0-20"
35+
"@nats-io/jetstream": "~3.0.0-9",
36+
"@nats-io/nats-core": "~3.0.0-24"
3837
},
3938
"devDependencies": {
4039
"@types/node": "^22.0.0",

Diff for: obj/deno.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/obj",
3-
"version": "3.0.0-3",
3+
"version": "3.0.0-5",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"
@@ -33,7 +33,7 @@
3333
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
3434
},
3535
"imports": {
36-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
37-
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
36+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
37+
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9"
3838
}
3939
}

Diff for: obj/import_map.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"imports": {
3-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
4-
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
5-
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
6-
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
3+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
4+
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
5+
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9",
6+
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-9/internal",
77
"test_helpers": "../test_helpers/mod.ts",
88
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
99
"@nats-io/nuid": "jsr:@nats-io/[email protected]",

Diff for: obj/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@nats-io/obj",
3-
"version": "3.0.0-3",
3+
"version": "3.0.0-5",
44
"files": [
55
"lib/",
6-
"build/src/",
76
"LICENSE",
87
"README.md"
98
],
@@ -33,8 +32,8 @@
3332
},
3433
"description": "obj library - this library implements all the base functionality for NATS objectstore for javascript clients",
3534
"dependencies": {
36-
"@nats-io/jetstream": "~3.0.0-7",
37-
"@nats-io/nats-core": "~3.0.0-20"
35+
"@nats-io/jetstream": "~3.0.0-9",
36+
"@nats-io/nats-core": "~3.0.0-24"
3837
},
3938
"devDependencies": {
4039
"@types/node": "^22.0.0",

Diff for: services/deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/services",
3-
"version": "3.0.0-3",
3+
"version": "3.0.0-5",
44
"exports": {
55
".": "./src/mod.ts",
66
"./internal": "./src/internal_mod.ts"
@@ -33,6 +33,6 @@
3333
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
3434
},
3535
"imports": {
36-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
36+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24"
3737
}
3838
}

Diff for: services/import_map.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"imports": {
3-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
4-
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
3+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
4+
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
55
"test_helpers": "../test_helpers/mod.ts",
66
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
77
"@nats-io/nuid": "jsr:@nats-io/[email protected]",

Diff for: services/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@nats-io/services",
3-
"version": "3.0.0-3",
3+
"version": "3.0.0-5",
44
"files": [
55
"lib/",
6-
"build/src/",
76
"LICENSE",
87
"README.md"
98
],
@@ -33,7 +32,7 @@
3332
},
3433
"description": "services library - this library implements all the base functionality for NATS services for javascript clients",
3534
"dependencies": {
36-
"@nats-io/nats-core": "~3.0.0-20"
35+
"@nats-io/nats-core": "~3.0.0-24"
3736
},
3837
"devDependencies": {
3938
"@types/node": "^22.0.0",

Diff for: transport-deno/deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/transport-deno",
3-
"version": "3.0.0-5",
3+
"version": "3.0.0-6",
44
"exports": {
55
".": "./src/mod.ts"
66
},
@@ -20,7 +20,7 @@
2020
},
2121
"imports": {
2222
"@std/io": "jsr:@std/[email protected]",
23-
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
23+
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
2424
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
2525
"@nats-io/nuid": "jsr:@nats-io/[email protected]"
2626
}

Diff for: transport-deno/src/version.ts

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
1-
/*
2-
* Copyright 2024 The NATS Authors
3-
* Licensed under the Apache License, Version 2.0 (the "License");
4-
* you may not use this file except in compliance with the License.
5-
* You may obtain a copy of the License at
6-
*
7-
* http://www.apache.org/licenses/LICENSE-2.0
8-
*
9-
* Unless required by applicable law or agreed to in writing, software
10-
* distributed under the License is distributed on an "AS IS" BASIS,
11-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
* See the License for the specific language governing permissions and
13-
* limitations under the License.
14-
*/
15-
161
// This file is generated - do not edit
17-
export const version = "3.0.0-5";
2+
export const version = "3.0.0-6";

Diff for: transport-node/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

Diff for: transport-node/bin/check-bundle-version.ts

-48
This file was deleted.

0 commit comments

Comments
 (0)