From 9e5ad3ea7712cda63fa84de1ad6156d2fe2f1145 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 22:42:41 +0300 Subject: [PATCH] chore: releases (#407) # Releases ## electric-sql@0.6.0 ### Minor Changes - 2662251: Add protocol version negotiation to websocket connection step - e5936a6: feat: changed the protocol to have a proper RPC implementation for ease of extension and maintanence ### Patch Changes - 3603703: Use parametrized SQL queries. ## create-electric-app@0.1.5 ### Patch Changes - bec4399: Remove NodeJS --no-warnings flag ## @core/electric@0.6.0 ### Minor Changes - 2662251: Add protocol version negotiation to websocket connection step - e5936a6: feat: changed the protocol to have a proper RPC implementation for ease of extension and maintanence ### Patch Changes - cf4ee7c: Implement support for the BOOLEAN column type in electrified tables - 75b2fcf: Implement support for the DATE column type in electrified tables. - da9a718: Rewrite the type-validating part of `electify` function to expand allowed types when Electric instance is upgraded - 4bd9ea2: Fix the problem where Postgres was failing to re-establish a replication connection to Electric after a restart - 1dd9500: Remove int8 from the list of supported types supported in electrified tables. - 3c47193: Implement support for electrifying and syncing tables that have columns types timestamp and timestamptz - de1c571: VAX-911 - store client lsn position in postgres - a4c5ce6: VAX-1036 - fixes bugs reported by @hugodutka by preventing insertion of duplicate ddl commands in migration history - 33ed7e8: Implement support for the TIME column type in electrified tables. - 76b15a6: Implement support for the UUID column type in electrified tables. - 4bbe283: Adds opt-out telemetry about Electric usage stats, configurable with `ELECTRIC_TELEMETRY`. --------- Co-authored-by: github-actions[bot] Co-authored-by: Ilia Borovitinov --- .changeset/angry-guests-protect.md | 5 ----- .changeset/brown-pots-brake.md | 5 ----- .changeset/cold-ads-cough.md | 6 ------ .changeset/forty-actors-sin.md | 5 ----- .changeset/happy-buttons-end.md | 5 ----- .changeset/light-stingrays-listen.md | 5 ----- .changeset/moody-clouds-itch.md | 5 ----- .changeset/neat-laws-wonder.md | 5 ----- .changeset/neat-wasps-exercise.md | 6 ------ .changeset/new-waves-breathe.md | 5 ----- .changeset/quiet-garlics-compare.md | 5 ----- .changeset/rich-islands-hunt.md | 5 ----- .changeset/shy-days-whisper.md | 5 ----- .changeset/six-items-grow.md | 5 ----- .changeset/young-ducks-mix.md | 5 ----- clients/typescript/CHANGELOG.md | 11 ++++++++++ clients/typescript/package.json | 2 +- clients/typescript/src/version.ts | 2 +- components/electric/CHANGELOG.md | 21 +++++++++++++++++++ .../electric/plug/satellite_websocket_plug.ex | 4 +++- components/electric/package.json | 2 +- examples/starter/CHANGELOG.md | 6 ++++++ examples/starter/package.json | 2 +- 23 files changed, 45 insertions(+), 82 deletions(-) delete mode 100644 .changeset/angry-guests-protect.md delete mode 100644 .changeset/brown-pots-brake.md delete mode 100644 .changeset/cold-ads-cough.md delete mode 100644 .changeset/forty-actors-sin.md delete mode 100644 .changeset/happy-buttons-end.md delete mode 100644 .changeset/light-stingrays-listen.md delete mode 100644 .changeset/moody-clouds-itch.md delete mode 100644 .changeset/neat-laws-wonder.md delete mode 100644 .changeset/neat-wasps-exercise.md delete mode 100644 .changeset/new-waves-breathe.md delete mode 100644 .changeset/quiet-garlics-compare.md delete mode 100644 .changeset/rich-islands-hunt.md delete mode 100644 .changeset/shy-days-whisper.md delete mode 100644 .changeset/six-items-grow.md delete mode 100644 .changeset/young-ducks-mix.md diff --git a/.changeset/angry-guests-protect.md b/.changeset/angry-guests-protect.md deleted file mode 100644 index 76fdd91851..0000000000 --- a/.changeset/angry-guests-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-electric-app": patch ---- - -Remove NodeJS --no-warnings flag diff --git a/.changeset/brown-pots-brake.md b/.changeset/brown-pots-brake.md deleted file mode 100644 index 1e7f22e337..0000000000 --- a/.changeset/brown-pots-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Implement support for the BOOLEAN column type in electrified tables diff --git a/.changeset/cold-ads-cough.md b/.changeset/cold-ads-cough.md deleted file mode 100644 index 52da3b80a2..0000000000 --- a/.changeset/cold-ads-cough.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@core/electric": minor -"electric-sql": minor ---- - -Add protocol version negotiation to websocket connection step diff --git a/.changeset/forty-actors-sin.md b/.changeset/forty-actors-sin.md deleted file mode 100644 index f91b375165..0000000000 --- a/.changeset/forty-actors-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Implement support for the DATE column type in electrified tables. diff --git a/.changeset/happy-buttons-end.md b/.changeset/happy-buttons-end.md deleted file mode 100644 index 0bf7f9f306..0000000000 --- a/.changeset/happy-buttons-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Rewrite the type-validating part of `electify` function to expand allowed types when Electric instance is upgraded diff --git a/.changeset/light-stingrays-listen.md b/.changeset/light-stingrays-listen.md deleted file mode 100644 index 7c6029c76d..0000000000 --- a/.changeset/light-stingrays-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Fix the problem where Postgres was failing to re-establish a replication connection to Electric after a restart diff --git a/.changeset/moody-clouds-itch.md b/.changeset/moody-clouds-itch.md deleted file mode 100644 index 70ede7414c..0000000000 --- a/.changeset/moody-clouds-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Remove int8 from the list of supported types supported in electrified tables. diff --git a/.changeset/neat-laws-wonder.md b/.changeset/neat-laws-wonder.md deleted file mode 100644 index 199c0bd492..0000000000 --- a/.changeset/neat-laws-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Implement support for electrifying and syncing tables that have columns types timestamp and timestamptz diff --git a/.changeset/neat-wasps-exercise.md b/.changeset/neat-wasps-exercise.md deleted file mode 100644 index ba3d91f433..0000000000 --- a/.changeset/neat-wasps-exercise.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@core/electric": minor -"electric-sql": minor ---- - -feat: changed the protocol to have a proper RPC implementation for ease of extension and maintanence diff --git a/.changeset/new-waves-breathe.md b/.changeset/new-waves-breathe.md deleted file mode 100644 index a9712dd2b7..0000000000 --- a/.changeset/new-waves-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -VAX-911 - store client lsn position in postgres diff --git a/.changeset/quiet-garlics-compare.md b/.changeset/quiet-garlics-compare.md deleted file mode 100644 index 1c5f10689a..0000000000 --- a/.changeset/quiet-garlics-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"electric-sql": patch ---- - -Use parametrized SQL queries. diff --git a/.changeset/rich-islands-hunt.md b/.changeset/rich-islands-hunt.md deleted file mode 100644 index a1464b8e26..0000000000 --- a/.changeset/rich-islands-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -VAX-1036 - fixes bugs reported by @hugodutka by preventing insertion of duplicate ddl commands in migration history diff --git a/.changeset/shy-days-whisper.md b/.changeset/shy-days-whisper.md deleted file mode 100644 index 8baf362df2..0000000000 --- a/.changeset/shy-days-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Implement support for the TIME column type in electrified tables. diff --git a/.changeset/six-items-grow.md b/.changeset/six-items-grow.md deleted file mode 100644 index 740102087b..0000000000 --- a/.changeset/six-items-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Implement support for the UUID column type in electrified tables. diff --git a/.changeset/young-ducks-mix.md b/.changeset/young-ducks-mix.md deleted file mode 100644 index e72c9aa219..0000000000 --- a/.changeset/young-ducks-mix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@core/electric": patch ---- - -Adds opt-out telemetry about Electric usage stats, configurable with `ELECTRIC_TELEMETRY`. diff --git a/clients/typescript/CHANGELOG.md b/clients/typescript/CHANGELOG.md index 4e67961e51..37ad5eea77 100644 --- a/clients/typescript/CHANGELOG.md +++ b/clients/typescript/CHANGELOG.md @@ -1,5 +1,16 @@ # electric-sql +## 0.6.0 + +### Minor Changes + +- 2662251: Add protocol version negotiation to websocket connection step +- e5936a6: feat: changed the protocol to have a proper RPC implementation for ease of extension and maintanence + +### Patch Changes + +- 3603703: Use parametrized SQL queries. + ## 0.5.3 ### Patch Changes diff --git a/clients/typescript/package.json b/clients/typescript/package.json index ebba8e344e..1e6c45fc23 100644 --- a/clients/typescript/package.json +++ b/clients/typescript/package.json @@ -1,5 +1,5 @@ { - "version": "0.5.3", + "version": "0.6.0", "name": "electric-sql", "description": "ElectricSQL TypeScript client for developing local-first SQL apps. Supports JavaScript based mobile, web and edge applications.", "repository": "https://github.com/electric-sql/electric/tree/main/clients/typescript", diff --git a/clients/typescript/src/version.ts b/clients/typescript/src/version.ts index 3729cfa1da..91dc695c2a 100644 --- a/clients/typescript/src/version.ts +++ b/clients/typescript/src/version.ts @@ -1 +1 @@ -export const LIB_VERSION = '0.5.2' +export const LIB_VERSION = '0.6.0' diff --git a/components/electric/CHANGELOG.md b/components/electric/CHANGELOG.md index d9b72e6d22..2f1f6069db 100644 --- a/components/electric/CHANGELOG.md +++ b/components/electric/CHANGELOG.md @@ -1,5 +1,26 @@ # @core/electric +## 0.6.0 + +### Minor Changes + +- 2662251: Add protocol version negotiation to websocket connection step +- e5936a6: feat: changed the protocol to have a proper RPC implementation for ease of extension and maintanence + +### Patch Changes + +- cf4ee7c: Implement support for the BOOLEAN column type in electrified tables +- 75b2fcf: Implement support for the DATE column type in electrified tables. +- da9a718: Rewrite the type-validating part of `electify` function to expand allowed types when Electric instance is upgraded +- 4bd9ea2: Fix the problem where Postgres was failing to re-establish a replication connection to Electric after a restart +- 1dd9500: Remove int8 from the list of supported types supported in electrified tables. +- 3c47193: Implement support for electrifying and syncing tables that have columns types timestamp and timestamptz +- de1c571: VAX-911 - store client lsn position in postgres +- a4c5ce6: VAX-1036 - fixes bugs reported by @hugodutka by preventing insertion of duplicate ddl commands in migration history +- 33ed7e8: Implement support for the TIME column type in electrified tables. +- 76b15a6: Implement support for the UUID column type in electrified tables. +- 4bbe283: Adds opt-out telemetry about Electric usage stats, configurable with `ELECTRIC_TELEMETRY`. + ## 0.5.3 ### Patch Changes diff --git a/components/electric/lib/electric/plug/satellite_websocket_plug.ex b/components/electric/lib/electric/plug/satellite_websocket_plug.ex index 63ed414356..70be000f58 100644 --- a/components/electric/lib/electric/plug/satellite_websocket_plug.ex +++ b/components/electric/lib/electric/plug/satellite_websocket_plug.ex @@ -18,10 +18,12 @@ defmodule Electric.Plug.SatelliteWebsocketPlug do &Electric.Replication.InitialSync.query_subscription_data/2 end) + @currently_supported_versions ">= 0.6.0 and <= #{Electric.vsn()}" + def call(conn, handler_opts) do with {:ok, conn} <- check_if_valid_upgrade(conn), {:ok, conn} <- check_if_subprotocol_present(conn), - {:ok, conn} <- check_if_vsn_compatible(conn, with: "<= #{Electric.vsn()}") do + {:ok, conn} <- check_if_vsn_compatible(conn, with: @currently_supported_versions) do Logger.metadata( remote_ip: conn.remote_ip |> :inet.ntoa() |> to_string(), instance_id: Electric.instance_id() diff --git a/components/electric/package.json b/components/electric/package.json index 2b77d49efc..df2b104b7a 100644 --- a/components/electric/package.json +++ b/components/electric/package.json @@ -1,5 +1,5 @@ { "name": "@core/electric", "private": true, - "version": "0.5.3" + "version": "0.6.0" } \ No newline at end of file diff --git a/examples/starter/CHANGELOG.md b/examples/starter/CHANGELOG.md index a8a80235ee..331ab43e36 100644 --- a/examples/starter/CHANGELOG.md +++ b/examples/starter/CHANGELOG.md @@ -1,5 +1,11 @@ # create-electric-app +## 0.1.5 + +### Patch Changes + +- bec4399: Remove NodeJS --no-warnings flag + ## 0.1.3 ### Patch Changes diff --git a/examples/starter/package.json b/examples/starter/package.json index ea6e58b2cb..8ee84a6e28 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -1,6 +1,6 @@ { "name": "create-electric-app", - "version": "0.1.4", + "version": "0.1.5", "author": "ElectricSQL", "license": "Apache-2.0", "main": "dist/index.js",