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/qrx/src/bar/index.tsmodified+3-3
Changes to packages/qrx/src/bar/index.ts
@@ -1,4 +1,4 @@
1import { defaults } from '../config'
1// import { defaults } from '../config'
22import { barcodes } from './drivers/index'
33import ErrorHandler from './exceptions/ErrorHandler'
44import { InvalidInputException, NoElementException } from './exceptions/exceptions'
@@ -21,7 +21,7 @@ export const barcode = function (element: any, text: any, options: any): any {
2121 // Variables that will be passed through the API calls
2222 api._renderProperties = getRenderProperties(element)
2323 api._encodings = []
24 api._options = defaults
24 api._options = {}
2525 api._errorHandler = new ErrorHandler(api)
2626
2727 // If text is set, use the simple syntax (render the barcode directly)
@@ -168,7 +168,7 @@ API.prototype.render = function () {
168168 return this
169169}
170170
171API.prototype._defaults = defaults
171API.prototype._defaults = {}
172172
173173// Prepares the encodings and calls the renderer
174174function render(renderProperties: any, encodings: any[], options: any) {
packages/qrx/src/bar/utils/getOptionsFromElement.tsmodified+4-3
Changes to packages/qrx/src/bar/utils/getOptionsFromElement.ts
@@ -1,11 +1,12 @@
1import { defaults } from '../../config'
1// import { defaults } from '../../config'
22import optionsFromStrings from './optionsFromStrings'
33
44export function getOptionsFromElement(element: HTMLElement): any {
55 let options: { [key: string]: any } = {}
66
7 for (const property in defaults) {
8 if (Object.prototype.hasOwnProperty.call(defaults, property)) {
7 for (const property in {}) {
8 // for (const property in defaults) {
9 if (Object.prototype.hasOwnProperty.call({}, property)) {
910 // jsbarcode-*
1011 if (element.hasAttribute(`jsbarcode-${property.toLowerCase()}`)) {
1112 options[property] = element.getAttribute(`jsbarcode-${property.toLowerCase()}`)
packages/qrx/src/index.tsmodified+1-1
Changes to packages/qrx/src/index.ts
@@ -1,4 +1,4 @@
11export * from './bar'
2export * from './config'
2// export * from './config'
33export * from './qr'
44export * from './types'