From a74555e47b2128382bf9f5f5c9e7d0937f405363 Mon Sep 17 00:00:00 2001 From: Dominik Piatek Date: Fri, 1 Jul 2022 16:51:20 +0100 Subject: [PATCH 1/2] Use nanoid/non-secure Standard nanoid depends on browser crypto API. We don't need the security for use case and using it breaks Gatsby SSR with not up-to-date jsdoms. --- src/core/Logo/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Logo/component.jsx b/src/core/Logo/component.jsx index 202708466..355fd0ee3 100644 --- a/src/core/Logo/component.jsx +++ b/src/core/Logo/component.jsx @@ -1,6 +1,6 @@ import React, { useMemo } from "react"; import T from "prop-types"; -import { nanoid } from "nanoid"; +import { nanoid } from "nanoid/non-secure"; const Logo = ({ dataId, href = "/" }) => { // This fixes a bug where if the logo is rendered more than once on the page, and one of the instances From b13cfed6a73cb8d947e1ff46a34cba279898fc25 Mon Sep 17 00:00:00 2001 From: Dominik Piatek Date: Fri, 1 Jul 2022 16:57:30 +0100 Subject: [PATCH 2/2] Publish v7.9.3-dev.a74555e and update preview app --- Gemfile.lock | 2 +- lib/ably_ui/version.rb | 2 +- package.json | 2 +- preview/Gemfile | 2 +- preview/Gemfile.lock | 4 ++-- preview/package.json | 2 +- preview/yarn.lock | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 07df1a6c4..fa3568dc7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ably-ui (7.9.3) + ably-ui (7.9.3.dev.a74555e) view_component (>= 2.33, < 2.50) GEM diff --git a/lib/ably_ui/version.rb b/lib/ably_ui/version.rb index 9f0c9a051..0115cd2bc 100644 --- a/lib/ably_ui/version.rb +++ b/lib/ably_ui/version.rb @@ -1,3 +1,3 @@ module AblyUi - VERSION = '7.9.3' + VERSION = '7.9.3.dev.a74555e' end diff --git a/package.json b/package.json index 1631eb873..6d817f63c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably/ui", - "version": "7.9.3", + "version": "7.9.3-dev.a74555e", "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", "repository": { "type": "git", diff --git a/preview/Gemfile b/preview/Gemfile index 82a8bd4d1..f1ada0d3f 100644 --- a/preview/Gemfile +++ b/preview/Gemfile @@ -36,4 +36,4 @@ gem 'view_component', '~> 2.33.0', require: 'view_component/engine' gem 'responders' -gem 'ably-ui', '7.8.4', require: 'ably_ui' +gem 'ably-ui', '7.9.3.dev.a74555e', require: 'ably_ui' diff --git a/preview/Gemfile.lock b/preview/Gemfile.lock index 29c9f6c87..544cfc873 100644 --- a/preview/Gemfile.lock +++ b/preview/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - ably-ui (7.8.4) + ably-ui (7.9.3.dev.a74555e) view_component (>= 2.33, < 2.50) actioncable (6.0.3.4) actionpack (= 6.0.3.4) @@ -169,7 +169,7 @@ PLATFORMS ruby DEPENDENCIES - ably-ui (= 7.8.4) + ably-ui (= 7.9.3.dev.a74555e) bootsnap (>= 1.4.2) byebug listen (~> 3.2) diff --git a/preview/package.json b/preview/package.json index ba43eb373..6fea8393b 100644 --- a/preview/package.json +++ b/preview/package.json @@ -2,7 +2,7 @@ "name": "preview", "private": true, "dependencies": { - "@ably/ui": "7.8.4", + "@ably/ui": "7.9.3-dev.a74555e", "@babel/preset-react": "^7.12.5", "@rails/ujs": "^6.0.0", "@rails/webpacker": "4.3.0", diff --git a/preview/yarn.lock b/preview/yarn.lock index 18b7d47b2..2e92e2a0f 100644 --- a/preview/yarn.lock +++ b/preview/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@ably/ui@7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-7.8.4.tgz#8795bcfa43f68f157e14434efbe5fdc0eed6dfcd" - integrity sha512-sVmx7Lk+m1drOpWC+7eXDtqV9ttJmUoL2k4iN2iu1vemT+s1mOM3xylfvgQV3fUA8I+biqHP4hgx0HDpEMbuvg== +"@ably/ui@7.9.3-dev.a74555e": + version "7.9.3-dev.a74555e" + resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-7.9.3-dev.a74555e.tgz#e176f99653efc4cca5279f84057aa5242de673b6" + integrity sha512-6SEf/99HZ3uooA9m44WiUCvur9P0mKYjDcGtpmPZYQmDZoImxeWbzrHyiWZiLLOQKuaSQzlhXKfUWledJ+UopA== dependencies: array-flat-polyfill "^1.0.1" deepmerge "^4.2.2"