Repository navigation
π¦ New version release - #13
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/audit@0.4.0
Minor Changes
silently.
TypeScript only. Transport errors and HTTP 5xx are retried with exponential
backoff; a 4xx is surfaced immediately. The retried POST carries the same
canonical bytes, since ingest dedupes on the event hash. The defaults now live
in
spec/parity-corpus.json'sretryPolicy(3 attempts, 100 ms base,doubling) and every language's tests assert their client against it, rather
than five copies of the same magic numbers.
swallow_errorsnow defaults toFalse. It defaultedto
True, so a misconfigured endpoint or an expired token dropped every auditevent and reported success β fail-open on the exact path that carries the
record. Pass
swallow_errors=Trueto keep the old behaviour;on_errornowfires whether or not the error is swallowed. (The old docstring also claimed
this matched the TypeScript client. It never did β TS has always thrown.)
AuditClient.emit_asyncin Python, running the blockingurllibPOST off the event loop via
asyncio.to_thread.AuditClientOptionsgainsmax_retries/retry_backoff_ms(bothOption,None= the shared default) and anAuditClientOptions::newconstructor. Go's
AuditClientgainsMaxRetries/RetryBackoff(zero =default). .NET's
AuditClientOptionsgainsMaxRetries/RetryBackoffMs.Emitstays synchronous on purpose βgo client.Emit(ctx, event)is howGo does async β and now honours context cancellation between retries too.