react-intersection-observer
Advanced tools
Comparing version 9.3.3 to 9.3.4-beta.1
125
package.json
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.3.3", | ||
"version": "9.3.4-beta.1", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
"source": "./src/index.tsx", | ||
"main": "./react-intersection-observer.js", | ||
"module": "./react-intersection-observer.mjs", | ||
"main": "./dist/react-intersection-observer.js", | ||
"module": "./dist/react-intersection-observer.esm.js", | ||
"unpkg": "./dist/react-intersection-observer.umd.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
"./test-utils": "./test-utils.js", | ||
"./test-utils": { | ||
"default": "./dist/test-utils.js", | ||
"types": "./dist/test-utils.d.ts" | ||
}, | ||
".": { | ||
"require": "./react-intersection-observer.js", | ||
"default": "./react-intersection-observer.modern.mjs" | ||
"module": "./dist/react-intersection-observer.esm.js", | ||
"require": "./dist/react-intersection-observer.js", | ||
"default": "./dist/react-intersection-observer.modern.mjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"unpkg": "./react-intersection-observer.umd.js", | ||
"typings": "./index.d.ts", | ||
"files": [ | ||
"dist", | ||
"README.md", | ||
"LICENSE", | ||
"package.json" | ||
], | ||
"author": "Daniel Schmidt", | ||
@@ -36,2 +47,30 @@ "sideEffects": false, | ||
], | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "always" | ||
}, | ||
"eslintIgnore": [ | ||
"*.snap", | ||
"test-utils.js", | ||
"dist/**", | ||
"lib/**", | ||
"example/**", | ||
"webpack.config.js" | ||
], | ||
"scripts": { | ||
"prebuild": "rm -rf dist lib", | ||
"build": "run-s build:*", | ||
"build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress", | ||
"build:utils": "tsc -p tsconfig.test.json", | ||
"postbuild": "size-limit", | ||
"dev": "yarn run storybook", | ||
"lint": "eslint . --ext js,ts,tsx", | ||
"release": "np --contents dist", | ||
"version": "yarn build", | ||
"pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write", | ||
"storybook": "start-storybook -p 9000", | ||
"storybook:build": "build-storybook --output-dir example", | ||
"test": "vitest" | ||
}, | ||
"release": { | ||
@@ -48,14 +87,21 @@ "branches": [ | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"pkgRoot": "dist" | ||
} | ||
], | ||
"@semantic-release/npm", | ||
"@semantic-release/github" | ||
] | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "npx lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.{js,json,css,md,ts,tsx}": [ | ||
"prettier --write" | ||
], | ||
"src/**/*.{ts,tsx}": [ | ||
"eslint", | ||
"vitest related --run" | ||
] | ||
}, | ||
"size-limit": [ | ||
{ | ||
"path": "dist/react-intersection-observer.mjs", | ||
"path": "dist/react-intersection-observer.esm.js", | ||
"name": "InView", | ||
@@ -66,3 +112,3 @@ "import": "{ InView }", | ||
{ | ||
"path": "dist/react-intersection-observer.mjs", | ||
"path": "dist/react-intersection-observer.esm.js", | ||
"name": "useInView", | ||
@@ -73,3 +119,3 @@ "import": "{ useInView }", | ||
{ | ||
"path": "dist/react-intersection-observer.mjs", | ||
"path": "dist/react-intersection-observer.esm.js", | ||
"name": "observe", | ||
@@ -82,3 +128,48 @@ "import": "{ observe }", | ||
"react": "^15.0.0 || ^16.0.0 || ^17.0.0|| ^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.2", | ||
"@babel/preset-env": "^7.18.2", | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
"@storybook/addon-actions": "6.5.5", | ||
"@storybook/addon-controls": "6.5.5", | ||
"@storybook/addon-docs": "6.5.5", | ||
"@storybook/addon-postcss": "^2.0.0", | ||
"@storybook/addon-viewport": "6.5.5", | ||
"@storybook/addons": "6.5.5", | ||
"@storybook/builder-vite": "^0.1.35", | ||
"@storybook/react": "6.5.5", | ||
"@storybook/theming": "6.5.5", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.2.0", | ||
"@types/jest": "^27.5.1", | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.5", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"autoprefixer": "^10.4.7", | ||
"eslint": "^8.16.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.30.0", | ||
"eslint-plugin-react-hooks": "^4.5.0", | ||
"framer-motion": "^6.3.4", | ||
"intersection-observer": "^0.12.0", | ||
"jsdom": "^19.0.0", | ||
"lint-staged": "^12.4.2", | ||
"microbundle": "^0.15.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.14", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-pkg": "^0.13.2", | ||
"prettier-plugin-tailwindcss": "^0.1.11", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"simple-git-hooks": "^2.7.0", | ||
"size-limit": "^7.0.8", | ||
"tailwindcss": "^3.0.24", | ||
"typescript": "^4.7.2", | ||
"vite": "^2.9.9", | ||
"vitest": "^0.12.9" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
214949
43
2
1