Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev to main #518

Merged
merged 55 commits into from
May 22, 2023
Merged

dev to main #518

merged 55 commits into from
May 22, 2023

Conversation

aricart
Copy link
Member

@aricart aricart commented May 22, 2023

This PR merges into main JS Simplification and other client changes

…f the filter_subject but allows a consumer to filter multiple subjects in a stream. To set, specify filter_subjects instead of filter_subject or if using consumer options builder filterSubject() can be called multiple times.

[CHANGE] filter_subject (and filter_subjects) can be updated, the server removed this restriction
…f the filter_subject but allows a consumer to filter multiple subjects in a stream. To set, specify filter_subjects instead of filter_subject or if using consumer options builder filterSubject() can be called multiple times.

[CHANGE] filter_subject (and filter_subjects) can be updated, the server removed this restriction
…icators - this means that now, setting up user/pass, token and a creds authenticator, etc is legal - previously such combinations were rejected.
[FIX] add support `previousRevision` in ObjectStorePutOps
FIX] ServiceMsgImpl was missing access to headers or reply subject
…oredMsg, DirectMsg this allows clients to decode payloads easier while still requiring accountability on the client (as decoding can fail)
[FEAT] Added json()/string() utilities to Msg and other variants
…ch would yield NaN - this is degenerate, but at least it doesn't have an unexpected code value
# Conflicts:
#	src/deno_transport.ts
[FIX] malformed status created a NaN code
[FIX] added a check on createInbox() to reject prefixes that contain wildcards
[FEAT] [JS] consumer/stream metadata
# Conflicts:
#	src/deno_transport.ts
#	tests/kv_test.ts
…ovided by the server (time() returns a Date object which will have lower precision)

[FIX] fixed StreamInfo.created to be a `string` (was marked as Nanos), StreamState@first_ts to be a string.

Fixes https://github.com/nats-io/nats.js/issues/556
timestamp types were incorrectly tagged as Nanos rather than strings
# Conflicts:
#	src/deno_transport.ts
[FEAT] [SRV] include schema metadata on ServiceSchema to make downstream tooling easier
… a transform to incoming messages before anything else.

[FEAT] [JS] `StreamSource` configurations can specify a `SubjectTransformConfig` to map a source and destination pattern.
[FIX] [JS] consumer deleted error was recently added, but was not interpreted as a terminal error - this enables the client to detect this on pull consumers - note that for push consumers the consumer deleted error is not raised, so heartbeats are the only reliable mechanism to detect when things go wrong.
* [FEAT] JS Simplification
* [FIX] accounting for pull request messages was happening when the iterator executed, creating additional pulls on the next message to be processed.
[FIX] tagged consumers api as beta, deprecated legacy subscribes/fetch/etc.

* making test pass

* PR comments
…bject that allows for easy access to alternates, best (best mirror as per nats-server), get an existing consumer (or ordered consumer) associated with the stream, and to manually retrieve a message. Some of this functionality is already available via JSM, this simply provides more convenient access. (#508)
[FIX] [SRV] `metadata` not included in `stats`, `schema` or `ping` responses
[FIX] [SRV] cross-client test to print a context when generating an error
[CHANGE] [SRV] removed `apiURL` config option and `api_url` - use `metadata` on the service
[CHANGE] [SRV] removed schema reporting, configuration, and related types - use `metadata` on the endpoint
[CHANGE] [SRV] removed endpoint configuration from initial service configuration, use `addEndpoint()`
[DOC] updated the doc and examples for service
@aricart aricart requested review from scottf, bruth and Jarema and removed request for scottf May 22, 2023 19:41
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aricart aricart merged commit 9cd3f18 into main May 22, 2023
@aricart aricart deleted the dev-to-main branch May 22, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants