Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
Open
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
This repo is forked from [rtfeldman/seamless-immutable](https://github.com/rtfeldman/seamless-immutable) to support React 19.
------------------

seamless-immutable
==================

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seamless-immutable",
"version": "7.1.4",
"name": "@qlqllu/seamless-immutable",
"version": "7.1.5",
"description": "Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.",
"main": "src/seamless-immutable.js",
"browser": "seamless-immutable.development.js",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/rtfeldman/seamless-immutable.git"
"url": "https://github.com/qlqllu/seamless-immutable"
},
"keywords": [
"immutable"
Expand All @@ -49,5 +49,5 @@
"validthis": true,
"proto": true
},
"homepage": "https://github.com/rtfeldman/seamless-immutable"
"homepage": "https://github.com/qlqllu/seamless-immutable"
}
8 changes: 4 additions & 4 deletions seamless-immutable.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

function immutableInit(config) {

// https://github.com/facebook/react/blob/v15.0.1/src/isomorphic/classic/element/ReactElement.js#L21
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element');
var REACT_ELEMENT_TYPE_FALLBACK = 0xeac7;
// https://github.com/facebook/react/blob/v19.0.0/packages/shared/ReactSymbols.js#L16
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element');
var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element')

var globalConfig = {
use_static: false
Expand Down Expand Up @@ -604,7 +604,7 @@ function immutableInit(config) {
function isReactElement(obj) {
return typeof obj === 'object' &&
obj !== null &&
(obj.$$typeof === REACT_ELEMENT_TYPE_FALLBACK || obj.$$typeof === REACT_ELEMENT_TYPE);
(obj.$$typeof === REACT_ELEMENT_TYPE || obj.$$typeof === REACT_LEGACY_ELEMENT_TYPE);
}

function isFileObject(obj) {
Expand Down
2 changes: 1 addition & 1 deletion seamless-immutable.development.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading