Skip to content

Commit

Permalink
chore(*): fixed npm packages for transport-node to point to types fro…
Browse files Browse the repository at this point in the history
…m lib, removed sources from npm packages (#40)
  • Loading branch information
aricart authored Aug 5, 2024
1 parent d6e8560 commit 5554462
Show file tree
Hide file tree
Showing 25 changed files with 58 additions and 228 deletions.
12 changes: 11 additions & 1 deletion bin/lib/bundle_versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ export class SemVer {
if (this.micro > b.micro) return 1;
if (this.qualifier === "") return 1;
if (b.qualifier === "") return -1;
return this.qualifier.localeCompare(b.qualifier);

// if we have non-empty qualifiers - we expect them to
const q = parseInt(this.qualifier);
const qq = parseInt(b.qualifier);

if (isNaN(q) || isNaN(qq)) {
return this.qualifier.localeCompare(b.qualifier);
}
if (q < qq) return -1;
if (q > qq) return 1;
return 0;
}

max(b: SemVer): SemVer {
Expand Down
1 change: 1 addition & 0 deletions core/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion core/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-20",
"version": "3.0.0-24",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down
3 changes: 1 addition & 2 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-20",
"version": "3.0.0-24",
"files": [
"lib/",
"build/src/",
"LICENSE",
"README.md"
],
Expand Down
2 changes: 1 addition & 1 deletion core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated - do not edit
export const version = "3.0.0-20";
export const version = "3.0.0-24";
4 changes: 2 additions & 2 deletions jetstream/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-7",
"version": "3.0.0-9",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24"
}
}
4 changes: 2 additions & 2 deletions jetstream/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"imports": {
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
"@nats-io/nuid": "jsr:@nats-io/[email protected]",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
"test_helpers": "../test_helpers/mod.ts",
"@std/io": "jsr:@std/[email protected]"
}
Expand Down
5 changes: 2 additions & 3 deletions jetstream/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-7",
"version": "3.0.0-9",
"files": [
"lib/",
"build/src/",
"LICENSE",
"README.md"
],
Expand Down Expand Up @@ -33,7 +32,7 @@
},
"description": "jetstream library - this library implements all the base functionality for NATS JetStream for javascript clients",
"dependencies": {
"@nats-io/nats-core": "~3.0.0-20"
"@nats-io/nats-core": "~3.0.0-24"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
6 changes: 3 additions & 3 deletions kv/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-5",
"version": "3.0.0-7",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9"
}
}
8 changes: 4 additions & 4 deletions kv/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-9/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
"@nats-io/nuid": "jsr:@nats-io/[email protected]",
Expand Down
7 changes: 3 additions & 4 deletions kv/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-5",
"version": "3.0.0-7",
"files": [
"lib/",
"build/src/",
"LICENSE",
"README.md"
],
Expand Down Expand Up @@ -33,8 +32,8 @@
},
"description": "kv library - this library implements all the base functionality for NATS KV javascript clients",
"dependencies": {
"@nats-io/jetstream": "~3.0.0-7",
"@nats-io/nats-core": "~3.0.0-20"
"@nats-io/jetstream": "~3.0.0-9",
"@nats-io/nats-core": "~3.0.0-24"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
6 changes: 3 additions & 3 deletions obj/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-3",
"version": "3.0.0-5",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9"
}
}
8 changes: 4 additions & 4 deletions obj/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-9",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-9/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
"@nats-io/nuid": "jsr:@nats-io/[email protected]",
Expand Down
7 changes: 3 additions & 4 deletions obj/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-3",
"version": "3.0.0-5",
"files": [
"lib/",
"build/src/",
"LICENSE",
"README.md"
],
Expand Down Expand Up @@ -33,8 +32,8 @@
},
"description": "obj library - this library implements all the base functionality for NATS objectstore for javascript clients",
"dependencies": {
"@nats-io/jetstream": "~3.0.0-7",
"@nats-io/nats-core": "~3.0.0-20"
"@nats-io/jetstream": "~3.0.0-9",
"@nats-io/nats-core": "~3.0.0-24"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
4 changes: 2 additions & 2 deletions services/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/services",
"version": "3.0.0-3",
"version": "3.0.0-5",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24"
}
}
4 changes: 2 additions & 2 deletions services/import_map.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-24/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
"@nats-io/nuid": "jsr:@nats-io/[email protected]",
Expand Down
5 changes: 2 additions & 3 deletions services/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@nats-io/services",
"version": "3.0.0-3",
"version": "3.0.0-5",
"files": [
"lib/",
"build/src/",
"LICENSE",
"README.md"
],
Expand Down Expand Up @@ -33,7 +32,7 @@
},
"description": "services library - this library implements all the base functionality for NATS services for javascript clients",
"dependencies": {
"@nats-io/nats-core": "~3.0.0-20"
"@nats-io/nats-core": "~3.0.0-24"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
4 changes: 2 additions & 2 deletions transport-deno/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/transport-deno",
"version": "3.0.0-5",
"version": "3.0.0-6",
"exports": {
".": "./src/mod.ts"
},
Expand All @@ -20,7 +20,7 @@
},
"imports": {
"@std/io": "jsr:@std/[email protected]",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-24",
"@nats-io/nkeys": "jsr:@nats-io/[email protected]",
"@nats-io/nuid": "jsr:@nats-io/[email protected]"
}
Expand Down
17 changes: 1 addition & 16 deletions transport-deno/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
/*
* Copyright 2024 The NATS Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// This file is generated - do not edit
export const version = "3.0.0-5";
export const version = "3.0.0-6";
1 change: 1 addition & 0 deletions transport-node/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
48 changes: 0 additions & 48 deletions transport-node/bin/check-bundle-version.ts

This file was deleted.

Loading

0 comments on commit 5554462

Please sign in to comment.