Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
66 lines
1.4 KiB
JSON
66 lines
1.4 KiB
JSON
{
|
|
"name": "rememo",
|
|
"type": "module",
|
|
"version": "4.0.2",
|
|
"description": "Memoized selectors for Redux and other immutable object derivation",
|
|
"main": "rememo.cjs",
|
|
"module": "rememo.js",
|
|
"types": "rememo.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./rememo.js",
|
|
"require": "./rememo.cjs"
|
|
}
|
|
},
|
|
"files": [
|
|
"rememo.cjs",
|
|
"rememo.js",
|
|
"rememo.d.ts",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"test:lint": "eslint . --ignore-pattern dist",
|
|
"test:typecheck": "tsc",
|
|
"test:unit": "mocha",
|
|
"test": "npm-run-all --parallel test:*",
|
|
"build:bundle": "rollup -c",
|
|
"build:types": "tsc -p tsconfig.decl.json",
|
|
"build": "npm-run-all --parallel build:*",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/aduth/rememo.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/aduth/rememo/issues"
|
|
},
|
|
"author": {
|
|
"name": "Andrew Duthie",
|
|
"email": "andrew@andrewduthie.com",
|
|
"url": "http://andrewduthie.com"
|
|
},
|
|
"keywords": [
|
|
"redux",
|
|
"selector",
|
|
"selectors",
|
|
"memoize",
|
|
"memoization",
|
|
"cache"
|
|
],
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@aduth/eslint-config": "^4.4.1",
|
|
"eslint": "^8.24.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-jsdoc": "^39.3.6",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"mocha": "^10.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.7.1",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"sinon": "^14.0.1",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|