ReviewOS

also looking at this

stacks/ts-qr-codes

chore(deps): update dependency react to 19.2.7

#2137
Closed chris wants to merge buddy-bot/update-major-update-react into main
222 files +16350 -1825

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

packages/react/package.jsonmodified+1-0
Changes to packages/react/package.json
@@ -1,6 +1,7 @@
11{
22 "name": "react-qrx",
33 "type": "module",
4 "sideEffects": false,
45 "version": "0.1.1",
56 "description": "QR & Bar Code generating & reading. React components.",
67 "author": "Chris Breuer <chris@stacksjs.org>",
packages/ts-qr-codes/bin/cli.tsmodified+1-0
Changes to packages/ts-qr-codes/bin/cli.ts
@@ -1,3 +1,4 @@
1#!/usr/bin/env bun
12import { CLI as CAC } from '@stacksjs/clapp'
23import { version } from '../package.json'
34// import { config } from '../src/config'
packages/ts-qr-codes/src/config-loader.tsadded+17-0
Changes to packages/ts-qr-codes/src/config-loader.ts
@@ -0,0 +1,17 @@
1import type { QRConfig } from './types'
2import { loadConfig } from 'bunfig'
3import { defaults } from './config'
4
5/**
6 * Load `qr.config.ts` from disk, falling back to `defaults`.
7 *
8 * Filesystem-only: bunfig reaches for node builtins, so this must NOT be
9 * re-exported from `./index` — that entry is built for the browser. Import
10 * this module directly from Bun/node (e.g. the CLI).
11 */
12export async function loadQRConfig(): Promise<QRConfig> {
13 return await loadConfig({
14 name: 'qr',
15 defaultConfig: defaults,
16 })
17}
packages/ts-qr-codes/src/config.tsmodified+10-14
Changes to packages/ts-qr-codes/src/config.ts
@@ -1,5 +1,4 @@
11import type { QRConfig } from './types'
2import { loadConfig } from 'bunfig'
32
43export const defaults: QRConfig = {
54 type: 'qr',
@@ -29,16 +28,13 @@ export const defaults: QRConfig = {
2928 elementTag: 'svg',
3029 },
3130}
32// eslint-disable-next-line import/no-mutable-exports
33export let config: QRConfig = defaults
34 ; (async () => {
35 config = await loadConfig({
36 name: 'qr',
37 defaultConfig: defaults,
38 })
39})()
40
41// export const config: QRConfig = await loadConfig({
42// name: 'qrx',
43// defaultConfig: defaults,
44// })
31/**
32 * The active config.
33 *
34 * This module is part of the browser build, so it resolves to `defaults`.
35 * Reading a `qr.config.ts` file is a filesystem concern — importing bunfig
36 * here pulled node builtins (`stream/promises`) into the browser bundle and
37 * broke the build. Load file config explicitly with `loadQRConfig()` from
38 * `./config-loader` (Bun/node only).
39 */
40export const config: QRConfig = defaults
packages/vue/package.jsonmodified+1-0
Changes to packages/vue/package.json
@@ -1,6 +1,7 @@
11{
22 "name": "vue-qrx",
33 "type": "module",
4 "sideEffects": false,
45 "version": "0.1.1",
56 "description": "QR & Bar Code generating & reading. Vue components.",
67 "author": "Chris Breuer <chris@stacksjs.org>",