From aa17cd338415ec2cf82cd59d2e0964198350ab79 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Fri, 18 Oct 2024 18:40:11 -0500 Subject: [PATCH] change(core): the JSONCodec and StringCodec utilities have been removed - Msg payloads can be read as string or JSON by using `string/json()` methods. For publishing, simply supply JSON.stringify() results as the payload. Signed-off-by: Alberto Ricart --- core/deno.json | 2 +- core/package.json | 2 +- core/src/version.ts | 2 +- jetstream/deno.json | 4 ++-- jetstream/import_map.json | 4 ++-- jetstream/package.json | 4 ++-- kv/deno.json | 6 +++--- kv/import_map.json | 8 ++++---- kv/package.json | 6 +++--- obj/deno.json | 6 +++--- obj/import_map.json | 8 ++++---- obj/package.json | 6 +++--- package.json | 10 ---------- services/deno.json | 4 ++-- services/import_map.json | 4 ++-- services/package.json | 4 ++-- transport-deno/deno.json | 2 +- transport-node/package-lock.json | 4 ++-- transport-node/package.json | 4 ++-- transport-node/src/version.ts | 2 +- 20 files changed, 41 insertions(+), 51 deletions(-) delete mode 100644 package.json diff --git a/core/deno.json b/core/deno.json index 64cce4a3..a7270a7d 100644 --- a/core/deno.json +++ b/core/deno.json @@ -1,6 +1,6 @@ { "name": "@nats-io/nats-core", - "version": "3.0.0-29", + "version": "3.0.0-30", "exports": { ".": "./src/mod.ts", "./internal": "./src/internal_mod.ts" diff --git a/core/package.json b/core/package.json index 3e7bed37..28eccbb1 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/nats-core", - "version": "3.0.0-29", + "version": "3.0.0-30", "files": [ "lib/", "LICENSE", diff --git a/core/src/version.ts b/core/src/version.ts index 7cef50e1..14911460 100644 --- a/core/src/version.ts +++ b/core/src/version.ts @@ -1,2 +1,2 @@ // This file is generated - do not edit -export const version = "3.0.0-29"; +export const version = "3.0.0-30"; diff --git a/jetstream/deno.json b/jetstream/deno.json index 7533229d..098cfe63 100644 --- a/jetstream/deno.json +++ b/jetstream/deno.json @@ -1,6 +1,6 @@ { "name": "@nats-io/jetstream", - "version": "3.0.0-14", + "version": "3.0.0-15", "exports": { ".": "./src/mod.ts", "./internal": "./src/internal_mod.ts" @@ -33,6 +33,6 @@ "test": "deno test -A --parallel --reload --trace-leaks --quiet tests/ --import-map=import_map.json" }, "imports": { - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29" + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30" } } diff --git a/jetstream/import_map.json b/jetstream/import_map.json index f09e94e2..bafe819c 100644 --- a/jetstream/import_map.json +++ b/jetstream/import_map.json @@ -2,8 +2,8 @@ "imports": { "@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4", "@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2", - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29", - "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-29/internal", + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-30/internal", "test_helpers": "../test_helpers/mod.ts", "@std/io": "jsr:@std/io@0.224.0" } diff --git a/jetstream/package.json b/jetstream/package.json index 09c21942..f75421ff 100644 --- a/jetstream/package.json +++ b/jetstream/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/jetstream", - "version": "3.0.0-14", + "version": "3.0.0-15", "files": [ "lib/", "LICENSE", @@ -34,7 +34,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-29" + "@nats-io/nats-core": "~3.0.0-30" }, "devDependencies": { "@types/node": "^22.7.6", diff --git a/kv/deno.json b/kv/deno.json index d537e6b4..dbbccd06 100644 --- a/kv/deno.json +++ b/kv/deno.json @@ -1,6 +1,6 @@ { "name": "@nats-io/kv", - "version": "3.0.0-11", + "version": "3.0.0-12", "exports": { ".": "./src/mod.ts", "./internal": "./src/internal_mod.ts" @@ -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-29", - "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-14" + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-15" } } diff --git a/kv/import_map.json b/kv/import_map.json index 0e765e3e..b0d4b9ee 100644 --- a/kv/import_map.json +++ b/kv/import_map.json @@ -1,9 +1,9 @@ { "imports": { - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29", - "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-29/internal", - "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-14", - "@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-14/internal", + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-30/internal", + "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-15", + "@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-15/internal", "test_helpers": "../test_helpers/mod.ts", "@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4", "@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2", diff --git a/kv/package.json b/kv/package.json index c528b27b..2c9c691a 100644 --- a/kv/package.json +++ b/kv/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/kv", - "version": "3.0.0-11", + "version": "3.0.0-12", "files": [ "lib/", "LICENSE", @@ -34,8 +34,8 @@ }, "description": "kv library - this library implements all the base functionality for NATS KV javascript clients", "dependencies": { - "@nats-io/jetstream": "~3.0.0-14", - "@nats-io/nats-core": "~3.0.0-29" + "@nats-io/jetstream": "~3.0.0-15", + "@nats-io/nats-core": "~3.0.0-30" }, "devDependencies": { "@types/node": "^22.7.6", diff --git a/obj/deno.json b/obj/deno.json index 3839b25c..42d2e23f 100644 --- a/obj/deno.json +++ b/obj/deno.json @@ -1,6 +1,6 @@ { "name": "@nats-io/obj", - "version": "3.0.0-11", + "version": "3.0.0-12", "exports": { ".": "./src/mod.ts", "./internal": "./src/internal_mod.ts" @@ -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-29", - "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-14" + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-15" } } diff --git a/obj/import_map.json b/obj/import_map.json index 0e765e3e..b0d4b9ee 100644 --- a/obj/import_map.json +++ b/obj/import_map.json @@ -1,9 +1,9 @@ { "imports": { - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29", - "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-29/internal", - "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-14", - "@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-14/internal", + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-30/internal", + "@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-15", + "@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-15/internal", "test_helpers": "../test_helpers/mod.ts", "@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4", "@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2", diff --git a/obj/package.json b/obj/package.json index d5d70a07..8d228e52 100644 --- a/obj/package.json +++ b/obj/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/obj", - "version": "3.0.0-11", + "version": "3.0.0-12", "files": [ "lib/", "LICENSE", @@ -34,8 +34,8 @@ }, "description": "obj library - this library implements all the base functionality for NATS objectstore for javascript clients", "dependencies": { - "@nats-io/jetstream": "~3.0.0-14", - "@nats-io/nats-core": "~3.0.0-29" + "@nats-io/jetstream": "~3.0.0-15", + "@nats-io/nats-core": "~3.0.0-30" }, "devDependencies": { "@types/node": "^22.7.6", diff --git a/package.json b/package.json deleted file mode 100644 index e8951e30..00000000 --- a/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "workspaces": [ - "./core", - "./jetstream", - "./kv", - "./obj", - "./services", - "./transport-node" - ] -} diff --git a/services/deno.json b/services/deno.json index 2c1e3ca7..ee58151d 100644 --- a/services/deno.json +++ b/services/deno.json @@ -1,6 +1,6 @@ { "name": "@nats-io/services", - "version": "3.0.0-8", + "version": "3.0.0-9", "exports": { ".": "./src/mod.ts", "./internal": "./src/internal_mod.ts" @@ -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-29" + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30" } } diff --git a/services/import_map.json b/services/import_map.json index 26fb5eff..0c5e9ca1 100644 --- a/services/import_map.json +++ b/services/import_map.json @@ -1,7 +1,7 @@ { "imports": { - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29", - "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-29/internal", + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", + "@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-30/internal", "test_helpers": "../test_helpers/mod.ts", "@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4", "@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2", diff --git a/services/package.json b/services/package.json index 20a5f2b9..d27e0f39 100644 --- a/services/package.json +++ b/services/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/services", - "version": "3.0.0-8", + "version": "3.0.0-9", "files": [ "lib/", "LICENSE", @@ -34,7 +34,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-29" + "@nats-io/nats-core": "~3.0.0-30" }, "devDependencies": { "@types/node": "^22.7.6", diff --git a/transport-deno/deno.json b/transport-deno/deno.json index 915b5108..b7aaef40 100644 --- a/transport-deno/deno.json +++ b/transport-deno/deno.json @@ -20,7 +20,7 @@ }, "imports": { "@std/io": "jsr:@std/io@0.224.0", - "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-29", + "@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-30", "@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4", "@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2" } diff --git a/transport-node/package-lock.json b/transport-node/package-lock.json index 160d3e9b..68736119 100644 --- a/transport-node/package-lock.json +++ b/transport-node/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nats-io/transport-node", - "version": "3.0.0-14", + "version": "3.0.0-15", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nats-io/transport-node", - "version": "3.0.0-14", + "version": "3.0.0-15", "license": "Apache-2.0", "dependencies": { "@nats-io/nats-core": "~3.0.0-20", diff --git a/transport-node/package.json b/transport-node/package.json index 68da683c..8bb3a98e 100644 --- a/transport-node/package.json +++ b/transport-node/package.json @@ -1,6 +1,6 @@ { "name": "@nats-io/transport-node", - "version": "3.0.0-14", + "version": "3.0.0-15", "description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", "keywords": [ "nats", @@ -54,7 +54,7 @@ "node": ">= 18.0.0" }, "dependencies": { - "@nats-io/nats-core": "~3.0.0-29", + "@nats-io/nats-core": "~3.0.0-30", "@nats-io/nkeys": "~1.2.0-7", "@nats-io/nuid": "^2.0.1-2" }, diff --git a/transport-node/src/version.ts b/transport-node/src/version.ts index 0bf8b446..7e38d46f 100644 --- a/transport-node/src/version.ts +++ b/transport-node/src/version.ts @@ -1,2 +1,2 @@ // This file is generated - do not edit -export const version = "3.0.0-14"; +export const version = "3.0.0-15";