Skip to content

Commit

Permalink
change(jetstream): removed jsclient#fetch()/pullSubscribe()/subscribe…
Browse files Browse the repository at this point in the history
…() and related configuration options such as ConsumerOpts, ConsumerOptsBuilder, and consumerOpts(), and related tests.

bump(*): deps, and synchronized lib internal dependencies to match

Signed-off-by: Alberto Ricart <[email protected]>
  • Loading branch information
aricart committed Oct 18, 2024
1 parent d406ba1 commit f1d61f8
Show file tree
Hide file tree
Showing 30 changed files with 151 additions and 2,964 deletions.
6 changes: 6 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
## BUGS

- ObjectStore should report the number of entries in it.

- no_wait for Consumer args.no_wait = opts.no_wait || false; if (args.no_wait &&
args.expires) { args.expires = 0; }
- headers_only is needed in Consumer

- add a test for next/fetch/consume where message size smaller than availablle
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-27",
"version": "3.0.0-28",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down
10 changes: 6 additions & 4 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-27",
"version": "3.0.0-28",
"files": [
"lib/",
"LICENSE",
Expand All @@ -24,7 +24,9 @@
"build-cjs": "npm run pre-process && tsc",
"build": "npm run build-cjs",
"doc": "npm run build && node_modules/.bin/typedoc --out ../docs/core && touch ../docs/core/.nojekyll",
"prepack": "npm run build"
"prepack": "npm run build",
"bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version",
"bump-release": "npm version patch --no-commit-hooks --no-git-tag-version"
},
"keywords": [],
"author": {
Expand All @@ -36,9 +38,9 @@
"@nats-io/nuid": "2.0.1-2"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/node": "^22.7.6",
"shx": "^0.3.4",
"typedoc": "^0.26.5",
"typedoc": "^0.26.10",
"typescript": "^5.5.4"
}
}
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-27";
export const version = "3.0.0-28";
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-11",
"version": "3.0.0-13",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -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-27"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-28"
}
}
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-27",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-27/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-28",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-28/internal",
"test_helpers": "../test_helpers/mod.ts",
"@std/io": "jsr:@std/[email protected]"
}
Expand Down
14 changes: 8 additions & 6 deletions jetstream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-11",
"version": "3.0.0-13",
"files": [
"lib/",
"LICENSE",
Expand All @@ -24,20 +24,22 @@
"build-cjs": "npm run pre-process && tsc",
"build": "npm run build-cjs",
"doc": "npm run build && node_modules/.bin/typedoc --out ../docs/jetstream && touch ../docs/jetstream/.nojekyll",
"prepack": "npm run build"
"prepack": "npm run build",
"bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version",
"bump-release": "npm version patch --no-commit-hooks --no-git-tag-version"
},
"keywords": [],
"author": {
"name": "The NATS Authors"
},
"description": "jetstream library - this library implements all the base functionality for NATS JetStream for javascript clients",
"dependencies": {
"@nats-io/nats-core": "~3.0.0-27"
"@nats-io/nats-core": "~3.0.0-28"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/node": "^22.7.6",
"shx": "^0.3.4",
"typedoc": "^0.26.5",
"typescript": "^5.5.4"
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}
11 changes: 0 additions & 11 deletions jetstream/src/internal_mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ export {
AdvisoryKind,
ConsumerDebugEvents,
ConsumerEvents,
consumerOpts,
DirectMsgHeaders,
isBoundPushConsumerOptions,
isConsumerOptsBuilder,
isOrderedPushConsumerOptions,
isPullConsumer,
isPushConsumer,
Expand Down Expand Up @@ -49,11 +47,8 @@ export type {
Consumer,
ConsumerAPI,
ConsumerCallbackFn,
ConsumerInfoable,
ConsumerKind,
ConsumerMessages,
ConsumerOpts,
ConsumerOptsBuilder,
Consumers,
ConsumerStatus,
DeleteableConsumer,
Expand All @@ -70,11 +65,6 @@ export type {
JetStreamManagerOptions,
JetStreamOptions,
JetStreamPublishOptions,
JetStreamPullSubscription,
JetStreamSubscription,
JetStreamSubscriptionInfoable,
JetStreamSubscriptionOptions,
JsMsgCallback,
Lister,
ListerFieldFilter,
MaxBytes,
Expand All @@ -83,7 +73,6 @@ export type {
OrderedConsumerOptions,
OrderedPushConsumerOptions,
PubAck,
Pullable,
PushConsumer,
PushConsumerOptions,
StoredMsg,
Expand Down
Loading

0 comments on commit f1d61f8

Please sign in to comment.