Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fix-random-size-hydration.md

This file was deleted.

7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# reactqrcode.com

## 1.4.14

### Patch Changes

- Updated dependencies [[`a23a08f`](https://github.com/LGLabGreg/react-qr-code/commit/a23a08f942ef8875bfc160a4becf4e41d7e1df74)]:
- @lglab/react-qr-code@1.7.1

## 1.4.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactqrcode.com",
"version": "1.4.13",
"version": "1.4.14",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-qr-code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @lglab/react-qr-code

## 1.7.1

### Patch Changes

- [#601](https://github.com/LGLabGreg/react-qr-code/pull/601) [`a23a08f`](https://github.com/LGLabGreg/react-qr-code/commit/a23a08f942ef8875bfc160a4becf4e41d7e1df74) Thanks [@LGLabGreg](https://github.com/LGLabGreg)! - Fix `randomSize` breaking server-side rendering. `getScaleFactor` called `Math.random()` during render, so the server and the client produced different module sizes, causing a hydration mismatch, and static prerenders froze one arbitrary result into the HTML. Scale factors are now derived deterministically from the module's position and a seed hashed from the code's pre-excavation module grid: the same `value` always renders the same layout, different values still get different layouts, resizing an excavating image no longer reshuffles the rest of the code, and SSR output matches hydration.

## 1.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-qr-code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lglab/react-qr-code",
"version": "1.7.0",
"version": "1.7.1",
"description": "React library to generate QR codes",
"author": "LGLab",
"license": "MIT",
Expand Down