react-portalize
Advanced tools
Comparing version 2.0.2 to 2.1.0
{ | ||
"name": "react-portalize", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"homepage": "https://github.com/jaredLunde/react-portalize#readme", | ||
@@ -16,19 +16,47 @@ "repository": "github:jaredLunde/react-portalize", | ||
"portal component", | ||
"portalize" | ||
"portalize", | ||
"react portal" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"main": "dist/main/index.js", | ||
"module": "dist/module/index.js", | ||
"source": "src/index.tsx", | ||
"types": "src/index.d.ts", | ||
"exports": { | ||
".": { | ||
"browser": "./dist/module/index.js", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/main/index.js", | ||
"default": "./dist/main/index.js", | ||
"source": "./src/index.tsx", | ||
"types": "./src/index.d.ts" | ||
}, | ||
"./server": { | ||
"browser": "./server/dist/module/index.js", | ||
"import": "./server/dist/esm/index.mjs", | ||
"require": "./server/dist/main/index.js", | ||
"default": "./server/dist/main/index.js", | ||
"source": "./server/src/index.ts", | ||
"types": "./server/src/index.d.ts" | ||
}, | ||
"./package.json": "./package.json", | ||
"./": "./" | ||
}, | ||
"files": [ | ||
"/src", | ||
"/dist", | ||
"/server" | ||
"/server/src", | ||
"/server/dist", | ||
"/server/package.json" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "npm run build:cjs && npm run build:es && npm run build:server && npm run build:types", | ||
"build:cjs": "babel src -d dist/cjs -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"build:server": "babel server-src -d server -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"build:es": "cross-env BABEL_ENV=es babel src -d dist/es -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"build:types": "tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && tsc -p tsconfig.server.json -d --outDir server --emitDeclarationOnly && rimraf dist/**/*.test.d.ts", | ||
"build": "npm run build-esm && npm run build-main && npm run build-module && npm run build-types", | ||
"build-esm": "npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs && npm run compile-server -- -d server/dist/esm --env-name esm --out-file-extension .mjs", | ||
"build-main": "npm run compile -- -d dist/main --env-name main && npm run compile-server -- -d server/dist/main --env-name main", | ||
"build-module": "npm run compile -- -d dist/module --env-name module && npm run compile-server -- -d server/dist/module --env-name module", | ||
"build-types": "rimraf src/index.d.ts && rimraf server/src/index.d.ts && tsc -p tsconfig.json -d --emitDeclarationOnly", | ||
"check-types": "tsc --noEmit -p tsconfig.json", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,babelrc,eslintrc,prettierrc}\"", | ||
"compile": "babel src -x .ts,.tsx --ignore \"**/*.d.ts\",\"**/*.test.tsx\" --delete-dir-on-start", | ||
"compile-server": "babel server/src -x .ts,.tsx --ignore \"**/*.d.ts\",\"**/*.test.tsx\" --delete-dir-on-start", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
@@ -41,3 +69,3 @@ "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format", | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm run build:types" | ||
"pre-commit": "npm run build-types && git add types && lint-staged" | ||
} | ||
@@ -50,3 +78,3 @@ }, | ||
], | ||
"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}": [ | ||
"**/*.{md,yml,json,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
@@ -61,2 +89,3 @@ ] | ||
"@testing-library/react-hooks": "latest", | ||
"@testing-library/user-event": "latest", | ||
"@types/jest": "latest", | ||
@@ -67,3 +96,4 @@ "@types/react": "latest", | ||
"@typescript-eslint/parser": "latest", | ||
"cross-env": "latest", | ||
"babel-plugin-annotate-pure-calls": "latest", | ||
"babel-plugin-optimize-react": "latest", | ||
"eslint": "latest", | ||
@@ -81,3 +111,3 @@ "eslint-import-resolver-jest": "latest", | ||
"react-test-renderer": "latest", | ||
"rimraf": "^2.6.3", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "latest", | ||
@@ -87,9 +117,9 @@ "typescript": "latest" | ||
"dependencies": { | ||
"@types/cheerio": "^0.22.18", | ||
"cheerio": "^1.0.0-rc.3" | ||
}, | ||
"peerDependencies": { | ||
"prop-types": ">=15.7.2", | ||
"react": ">=16.8", | ||
"react-dom": ">=16" | ||
"react-dom": ">=16.8" | ||
} | ||
} |
@@ -91,3 +91,3 @@ <hr> | ||
<Portalize providers={[{provider: YourProvider, value: YourProviderValue}]}> | ||
<YourConsumer>{value => JSON.stringify(value)}</YourConsumer> | ||
<YourConsumer>{(value) => JSON.stringify(value)}</YourConsumer> | ||
</Portalize> | ||
@@ -105,3 +105,3 @@ ``` | ||
## Server side rendering | ||
## SSR | ||
@@ -108,0 +108,0 @@ ### Example with React root as the entry point |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24686
18
414
28
+ Added@types/cheerio@^0.22.18
+ Added@types/cheerio@0.22.35(transitive)
+ Added@types/node@22.9.0(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)