From 9589acdd9ff4162211c4d8001fa2423477c01528 Mon Sep 17 00:00:00 2001 From: svix-lucho Date: Thu, 13 Feb 2025 12:56:16 -0300 Subject: [PATCH] Bump version to 1.57.0 --- .version | 2 +- ChangeLog.md | 12 ++++++++---- bridge/Cargo.lock | 2 +- bridge/svix-bridge/Cargo.toml | 2 +- csharp/Svix/Svix.csproj | 2 +- go/version.go | 2 +- java/README.md | 4 ++-- java/gradle.properties | 2 +- java/lib/src/main/java/com/svix/Svix.java | 2 +- javascript/package.json | 2 +- javascript/src/request.ts | 2 +- kotlin/README.md | 4 ++-- kotlin/gradle.properties | 2 +- lib-openapi.json | 2 +- python/svix/__init__.py | 2 +- ruby/Gemfile.lock | 2 +- ruby/lib/svix/version.rb | 2 +- rust/Cargo.toml | 2 +- server/Cargo.lock | 2 +- server/svix-server/Cargo.toml | 2 +- svix-cli/Cargo.lock | 4 ++-- svix-cli/Cargo.toml | 2 +- svix-cli/README.md | 4 ++-- 23 files changed, 34 insertions(+), 30 deletions(-) diff --git a/.version b/.version index 47d563613..f27a1d54a 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.56.0 \ No newline at end of file +1.57.0 \ No newline at end of file diff --git a/ChangeLog.md b/ChangeLog.md index 1a039dc58..f2defb5e4 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,22 +1,27 @@ # Changelog -## Unreleased +## Version 1.57.0 +This version contains a big overhaul of the client libraries, with improved typing. + * Libs/Go: Add `Authentication.ExpireAll` (and `ExpireAllWithOptions`) * Libs/Go **(Breaking)**: Excluding specific fields on the *Patch models (`ApplicationPatch` for example), all `Nullable{Type}` removed from the models * Libs/Go **(Breaking)**: All `Nullable{Type}` (for example `NullableString`) are replaced with a new generic `Nullable[T]` type, the new type can be imported from `github.com/svix/svix-webhooks/go/utils` * Libs/Go **(Breaking)**: All custom model types are now imported from `github.com/svix/svix-webhooks/go/models` instead of `github.com/svix/svix-webhooks/go` * Libs/Go **(Breaking)**: All `-WithOptions` methods are now removed. Their regular counterparts now take a pointer to an Options type which can be nil when not needed. For example in `Endpoint.RecoverWithOptions` is now `Endpoint.Recover` + * Libs/C# and Libs/Go **(Breaking)**: All uses of `ListOptions`/`PostOptions` are removed, and renamed to `{Resource}{Operation}Options`. For example in `Endpoint.List` you would now use `EndpointListOptions` * Libs/C# **(Breaking)**: All `IdempotencyKey` method parameters are removed, and are now part of `{Resource}{Operation}Options`. For example in `Message.Create`; to the use `IdempotencyKey`, simply pass it in the `MessageCreateOptions` * Libs/C# **(Breaking)**: The `Throw` parameter is removed from `SvixOptions` * Libs/C# **(Breaking)**: All redundant interfaces along with the `Svix.Abstractions` namespace are removed * Libs/C# **(Breaking)**: The `Svix.Model` and `Svix.Models` namespaces are now merged into a single `Svix.Models` namespace * Libs/C# **(Breaking)**: The `Svix.Client` namespace is removed, The `SvixClient` class can now be found in the `Svix` namespace + * Libs/Python **(Breaking)**: `PostOptions` and `ListOptions` are no longer used in methods for `Authentication`,`Endpoint`,`EventType`,`Integration`,`MessageAttempt`,`Message`, `Statistics` and `OperationalWebhookEndpoint` resources. Instead each API call now has its own `{Resource}{Operation}Options`. (Both sync and async) * Libs/Python: In `Application` the `dashboard_access` method is deprecated in favor of `app_portal_access`. (Both sync and async) * Libs/Python **(Breaking)**: `EndpointStatsOptions` is renamed to `EndpointGetStatsOptions` * Libs/Python **(Breaking)**: `MessageAttemptListOptions` is removed in favor of call specific `{Resource}{Operation}Options` * Libs/Python **(Breaking)**: For `Statistics` in the `aggregate_event_types` method the `task_id` parameter is removed, Please note that previously this parameter was ignored and had no affect (Both sync and async) + * Libs/Kotlin **(Breaking)**: Mark `api` field of all API resource classes as `private` (previously only some were private, accidentally) * Libs/Kotlin **(Breaking)**: Update `recover` to return `RecoverOut` (instead of nothing) @@ -25,8 +30,8 @@ * Libs/Kotlin **(Breaking)**: Update `MessageAttempt` list methods to each have its own type for list options, since they don't all support the exact same set of parameters and some of the parameters that could be set before would just get ignored -* Libs/Kotlin: Fix the parameter names of `Endpoint.get` - `appId` and `endpointId` were swapped * Libs/Kotlin: Fix a bug in `EventType.list` where `options.order` was not getting honored + * Libs/Rust **(Breaking)**: Add optional `EventTypeDeleteOptions` parameter to `EventType::delete` * Libs/Rust **(Breaking)**: Add optional `options` parameters to `Endpoint::recover`, `Endpoint::rotate_secret`, `Integration::rotate_key` and `MessageAttempt::resend` @@ -37,8 +42,7 @@ * Libs/Rust **(Breaking)**: Change `rate_limit` from `i32` to `u16` in several places * Libs/Rust **(Breaking)**: Remove `settings` parameter from `EnvironmentIn::new` * Libs/Rust **(Breaking)**: Replace `PostOptions` with operation-specific options structs -* Libs/Rust **(Breaking)**: Remove `Period` from `BackgroundTaskType` variant names; this was - introduced by accident a few releases ago +* Libs/Rust **(Breaking)**: Remove `Period` from `BackgroundTaskType` variant names; this was introduced by accident a few releases ago ## Version 1.56.0 * Skipping versions: we had an issue with our CI that created duplicated Go diff --git a/bridge/Cargo.lock b/bridge/Cargo.lock index 49ca9bdb7..84c18357f 100644 --- a/bridge/Cargo.lock +++ b/bridge/Cargo.lock @@ -4360,7 +4360,7 @@ dependencies = [ [[package]] name = "svix-bridge" -version = "1.56.0" +version = "1.57.0" dependencies = [ "anyhow", "axum", diff --git a/bridge/svix-bridge/Cargo.toml b/bridge/svix-bridge/Cargo.toml index 1fcadf301..cd94018cd 100644 --- a/bridge/svix-bridge/Cargo.toml +++ b/bridge/svix-bridge/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svix-bridge" -version = "1.56.0" +version = "1.57.0" edition = "2021" publish = false diff --git a/csharp/Svix/Svix.csproj b/csharp/Svix/Svix.csproj index 2c4c38c2c..4a4d29eaa 100644 --- a/csharp/Svix/Svix.csproj +++ b/csharp/Svix/Svix.csproj @@ -3,7 +3,7 @@ net8.0 Svix - 1.56.0 + 1.57.0 Svix Svix true diff --git a/go/version.go b/go/version.go index a91010af4..03de2b350 100644 --- a/go/version.go +++ b/go/version.go @@ -1,3 +1,3 @@ package svix -const Version = "1.56.0" +const Version = "1.57.0" diff --git a/java/README.md b/java/README.md index 6ae848575..27373c4f2 100644 --- a/java/README.md +++ b/java/README.md @@ -51,7 +51,7 @@ Add this dependency to your project's POM: com.svix svix - 1.56.0 + 1.57.0 compile ``` @@ -61,7 +61,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -implementation "com.svix:svix:1.56.0" +implementation "com.svix:svix:1.57.0" ``` # Development diff --git a/java/gradle.properties b/java/gradle.properties index 7051c03cd..e83e4aae8 100644 --- a/java/gradle.properties +++ b/java/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.svix -VERSION_NAME=1.56.0 +VERSION_NAME=1.57.0 POM_URL=https://github.com/svix/svix-webhooks POM_SCM_URL=git@github.com:svix/svix-webhooks.git diff --git a/java/lib/src/main/java/com/svix/Svix.java b/java/lib/src/main/java/com/svix/Svix.java index 3fac7dd41..56b128978 100644 --- a/java/lib/src/main/java/com/svix/Svix.java +++ b/java/lib/src/main/java/com/svix/Svix.java @@ -5,7 +5,7 @@ import com.svix.internal.auth.HttpBearerAuth; public final class Svix { - public static final String VERSION = "1.56.0"; + public static final String VERSION = "1.57.0"; private final Application application; private final Authentication authentication; private final Endpoint endpoint; diff --git a/javascript/package.json b/javascript/package.json index c60ee4f3f..ebccf81df 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -1,6 +1,6 @@ { "name": "svix", - "version": "1.56.0", + "version": "1.57.0", "description": "Svix webhooks API client and webhook verification library", "author": "svix", "repository": "https://github.com/svix/svix-libs", diff --git a/javascript/src/request.ts b/javascript/src/request.ts index 8fcab139a..b7b754fe9 100644 --- a/javascript/src/request.ts +++ b/javascript/src/request.ts @@ -3,7 +3,7 @@ import { ApiException } from "./util"; import { HttpErrorOut, HTTPValidationError } from "./openapi"; import { ObjectSerializer } from "./openapi/models/ObjectSerializer"; -export const LIB_VERSION = "1.56.0"; +export const LIB_VERSION = "1.57.0"; const USER_AGENT = `svix-libs/${LIB_VERSION}/javascript`; export enum HttpMethod { diff --git a/kotlin/README.md b/kotlin/README.md index f0b9e423b..3030df1c1 100644 --- a/kotlin/README.md +++ b/kotlin/README.md @@ -51,7 +51,7 @@ Add this dependency to your project's POM: com.svix.kotlin svix-kotlin - 1.56.0 + 1.57.0 compile ``` @@ -61,7 +61,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -implementation "com.svix.kotlin:svix-kotlin:1.56.0" +implementation "com.svix.kotlin:svix-kotlin:1.57.0" ``` # Development diff --git a/kotlin/gradle.properties b/kotlin/gradle.properties index b86863ff4..3e282c4d2 100644 --- a/kotlin/gradle.properties +++ b/kotlin/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.svix.kotlin -VERSION_NAME=1.56.0 +VERSION_NAME=1.57.0 POM_URL=https://github.com/svix/svix-webhooks POM_SCM_URL=git@github.com:svix/svix-webhooks.git diff --git a/lib-openapi.json b/lib-openapi.json index f26eb703f..626f272d2 100644 --- a/lib-openapi.json +++ b/lib-openapi.json @@ -7173,7 +7173,7 @@ "info": { "description": "Welcome to the Svix API documentation!\n\nUseful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/)\n\n# Introduction\n\nThis is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com).\n\n## Main concepts\n\nIn Svix you have four important entities you will be interacting with:\n\n- `messages`: these are the webhooks being sent. They can have contents and a few other properties.\n- `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform.\n- `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type).\n- `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint.\n\n\n## Authentication\n\nGet your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys).\n\n\n\n\n## Code samples\n\nThe code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/).\n\n\n## Idempotency\n\nSvix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response.\n\nTo perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions.\n\nSvix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result for a period of up to 12 hours.\n\nPlease note that idempotency is only supported for `POST` requests.\n\n\n## Cross-Origin Resource Sharing\n\nThis API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.\n", "title": "Svix API", - "version": "1.56.0", + "version": "1.57.0", "x-logo": { "altText": "Svix Logo", "url": "https://www.svix.com/static/img/brand-padded.svg" diff --git a/python/svix/__init__.py b/python/svix/__init__.py index 3dc0b2a79..605c92b6a 100644 --- a/python/svix/__init__.py +++ b/python/svix/__init__.py @@ -37,4 +37,4 @@ "WebhookVerificationError", ] -__version__ = "1.56.0" +__version__ = "1.57.0" diff --git a/ruby/Gemfile.lock b/ruby/Gemfile.lock index 795ffe0d8..60d2d77c2 100644 --- a/ruby/Gemfile.lock +++ b/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - svix (1.56.0) + svix (1.57.0) GEM remote: https://rubygems.org/ diff --git a/ruby/lib/svix/version.rb b/ruby/lib/svix/version.rb index b3977154e..2bcd22cdb 100644 --- a/ruby/lib/svix/version.rb +++ b/ruby/lib/svix/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Svix - VERSION = "1.56.0" + VERSION = "1.57.0" end diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8e67e90d2..5c03f9dc3 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svix" -version = "1.56.0" +version = "1.57.0" authors = ["Svix Inc. "] edition = "2021" description = "Svix webhooks API client and webhook verification library" diff --git a/server/Cargo.lock b/server/Cargo.lock index 78e78ca43..eff948283 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -4751,7 +4751,7 @@ dependencies = [ [[package]] name = "svix-server" -version = "1.56.0" +version = "1.57.0" dependencies = [ "aide", "anyhow", diff --git a/server/svix-server/Cargo.toml b/server/svix-server/Cargo.toml index 7055ec9cf..91f034304 100644 --- a/server/svix-server/Cargo.toml +++ b/server/svix-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svix-server" -version = "1.56.0" +version = "1.57.0" description = "Svix webhooks server" publish = false edition.workspace = true diff --git a/svix-cli/Cargo.lock b/svix-cli/Cargo.lock index 5293bea11..639f3d5da 100644 --- a/svix-cli/Cargo.lock +++ b/svix-cli/Cargo.lock @@ -1565,7 +1565,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "svix" -version = "1.56.0" +version = "1.57.0" dependencies = [ "base64 0.13.1", "hmac-sha256", @@ -1589,7 +1589,7 @@ dependencies = [ [[package]] name = "svix-cli" -version = "1.56.0" +version = "1.57.0" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/svix-cli/Cargo.toml b/svix-cli/Cargo.toml index b92e02706..b4d343d58 100644 --- a/svix-cli/Cargo.toml +++ b/svix-cli/Cargo.toml @@ -3,7 +3,7 @@ name = "svix-cli" description = "A CLI to interact with the Svix API." homepage = "https://www.svix.com" authors = ["Svix Inc. "] -version = "1.56.0" +version = "1.57.0" edition = "2021" license = "MIT" keywords = ["svix", "webhooks", "diahook"] diff --git a/svix-cli/README.md b/svix-cli/README.md index fc5f526a2..ce8307b63 100644 --- a/svix-cli/README.md +++ b/svix-cli/README.md @@ -24,13 +24,13 @@ A CLI to interact with the Svix API. Pre-built binaries are available for Linux, macOS via shell script installers. ``` -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/svix/svix-webhooks/releases/download/v1.56.0/svix-cli-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/svix/svix-webhooks/releases/download/v1.57.0/svix-cli-installer.sh | sh ``` For Windows users, installation can be done via powershell: ``` -powershell -ExecutionPolicy ByPass -c "irm https://github.com/svix-onelson/svix-webhooks/releases/download/v1.56.0/svix-cli-installer.ps1 | iex" +powershell -ExecutionPolicy ByPass -c "irm https://github.com/svix-onelson/svix-webhooks/releases/download/v1.57.0/svix-cli-installer.ps1 | iex" ``` These scripts will install the binaries to `~/.svix/bin` and also add this directory to your `PATH` by default.