bootstrap.native
Advanced tools
Comparing version 4.2.0 to 5.0.0-alpha1
114
package.json
{ | ||
"name": "bootstrap.native", | ||
"version": "4.2.0", | ||
"description": "Native JavaScript for Bootstrap", | ||
"main": "dist/bootstrap-native.min.js", | ||
"types": "src/index.d.ts", | ||
"module": "dist/bootstrap-native.esm.js", | ||
"jsnext": "src/index.js", | ||
"files": [ | ||
"dist", | ||
"types", | ||
"src" | ||
], | ||
"version": "5.0.0-alpha1", | ||
"description": "Bootstrap components build with Typescript", | ||
"source": "src/index.ts", | ||
"main": "dist/bootstrap-native.js", | ||
"module": "dist/bootstrap-native.cjs", | ||
"esnext": "dist/bootstrap-native.mjs", | ||
"types": "dist/bootstrap-native.d.ts", | ||
"scripts": { | ||
"test": "cypress run", | ||
"format": "prettier --write \"src/**/*.ts\"", | ||
"pre-test": "npm run clean-coverage", | ||
"clean-coverage": "rimraf coverage .nyc_output", | ||
"test": "npm run pre-test && npx cypress run", | ||
"dev": "npx vite --host --port 8080 --open /docs/index.html", | ||
"cypress": "npx cypress open", | ||
"coverage:report": "nyc report --reporter=lcov --reporter=json --reporter=text --reporter=json-summary", | ||
"build": "npm run lint:js && npm-run-all --parallel build-* && npm-run-all --parallel module-* && npm-run-all --parallel copy-*", | ||
"custom": "rollup -c --environment", | ||
"fix:js": "eslint src/ --config .eslintrc --fix", | ||
"lint:js": "eslint src/ --config .eslintrc", | ||
"build-esm": "rollup --environment FORMAT:esm,MIN:false -c", | ||
"build-esm-min": "rollup --environment FORMAT:esm,MIN:true -c", | ||
"build-umd": "rollup --environment FORMAT:umd,MIN:false -c", | ||
"build-umd-min": "rollup --environment FORMAT:umd,MIN:true -c", | ||
"copy-umd": "rollup --environment FORMAT:umd,MIN:false,OUTPUTFILE:./docs/assets/js/bootstrap-native.js -c", | ||
"build:ts": "tsc -d", | ||
"modules": "npm-run-all --parallel module-*", | ||
"module-alert-esm": "rollup --environment MODULE:alert,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-button-esm": "rollup --environment MODULE:button,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-carousel-esm": "rollup --environment MODULE:carousel,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-collapse-esm": "rollup --environment MODULE:collapse,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-dropdown-esm": "rollup --environment MODULE:dropdown,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-modal-esm": "rollup --environment MODULE:modal,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-offcanvas-esm": "rollup --environment MODULE:offcanvas,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-popover-esm": "rollup --environment MODULE:popover,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-scrollspy-esm": "rollup --environment MODULE:scrollspy,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-tab-esm": "rollup --environment MODULE:tab,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-toast-esm": "rollup --environment MODULE:toast,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-tooltip-esm": "rollup --environment MODULE:tooltip,FORMAT:esm,MIN:false -c rollup.module.js", | ||
"module-alert-umd": "rollup --environment MODULE:alert,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-button-umd": "rollup --environment MODULE:button,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-carousel-umd": "rollup --environment MODULE:carousel,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-collapse-umd": "rollup --environment MODULE:collapse,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-dropdown-umd": "rollup --environment MODULE:dropdown,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-modal-umd": "rollup --environment MODULE:modal,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-offcanvas-umd": "rollup --environment MODULE:offcanvas,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-popover-umd": "rollup --environment MODULE:popover,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-scrollspy-umd": "rollup --environment MODULE:scrollspy,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-tab-umd": "rollup --environment MODULE:tab,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-toast-umd": "rollup --environment MODULE:toast,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"module-tooltip-umd": "rollup --environment MODULE:tooltip,FORMAT:umd,MIN:false -c rollup.module.js", | ||
"watch": "rollup --environment FORMAT:umd,MIN:false -c -w" | ||
"build": "npm run lint:ts && npm run build-vite && npm run dts", | ||
"build-vite": "vite build && npm run copy-docs", | ||
"dts": "dts-bundle-generator --config ./dts.config.ts", | ||
"copy-docs": "ncp dist/bootstrap-native.js docs/assets/js/bootstrap-native.js && ncp dist/bootstrap-native.js.map docs/assets/js/bootstrap-native.js.map", | ||
"lint:ts": "eslint -c .eslintrc.cjs --ext .ts src", | ||
"fix:ts": "eslint -c .eslintrc.cjs --ext .ts src --fix" | ||
}, | ||
@@ -60,2 +30,6 @@ "browserslist": [ | ||
], | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
@@ -66,7 +40,8 @@ "type": "git", | ||
"keywords": [ | ||
"bootstrap.native", | ||
"bootstrap native", | ||
"bootstrap", | ||
"bsn", | ||
"native", | ||
"javascript", | ||
"vanilla" | ||
"vanilla javascript", | ||
"typescript" | ||
], | ||
@@ -80,25 +55,26 @@ "author": "dnp_theme", | ||
"dependencies": { | ||
"@thednp/event-listener": "^1.0.4", | ||
"@thednp/shorty": "^1.0.3" | ||
"@thednp/event-listener": "^2.0.0-alpha8", | ||
"@thednp/shorty": "^2.0.0-alpha12" | ||
}, | ||
"devDependencies": { | ||
"@bahmutov/cypress-esbuild-preprocessor": "^2.1.3", | ||
"@cypress/code-coverage": "^3.9.12", | ||
"@rollup/plugin-buble": "^0.21.3", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^7.1.0", | ||
"@rollup/plugin-typescript": "^8.3.0", | ||
"cypress": "^9.7.0", | ||
"esbuild": "^0.14.30", | ||
"eslint": "^7.22.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"@bahmutov/cypress-esbuild-preprocessor": "^2.1.5", | ||
"@cypress/code-coverage": "^3.10.0", | ||
"@types/istanbul-lib-instrument": "^1.7.4", | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"cypress": "^12.2.0", | ||
"dts-bundle-generator": "^7.2.0", | ||
"eslint": "^8.30.0", | ||
"eslint-plugin-jsdoc": "^39.6.4", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"istanbul-lib-coverage": "^3.2.0", | ||
"istanbul-lib-instrument": "^5.2.0", | ||
"npm-run-all": "^4.1.5", | ||
"istanbul-lib-instrument": "^5.2.1", | ||
"ncp": "^2.0.0", | ||
"nyc": "^15.1.0", | ||
"rollup": "^2.38.5", | ||
"rollup-plugin-terser": "^5.3.1", | ||
"typescript": "^4.5.2" | ||
"prettier": "^2.8.3", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.9.4", | ||
"vite": "^4.0.4" | ||
} | ||
} |
@@ -6,5 +6,7 @@ # BSN | ||
[![jsDeliver](https://img.shields.io/jsdelivr/npm/hw/bootstrap.native)](https://www.jsdelivr.com/package/npm/bootstrap.native) | ||
[![CDNJS](https://img.shields.io/cdnjs/v/bootstrap.native.svg)](https://cdnjs.com/libraries/bootstrap.native) | ||
![cypress version](https://img.shields.io/badge/cypress-9.7.0-brightgreen) | ||
![typescript version](https://img.shields.io/badge/typescript-4.5.2-brightgreen) | ||
[![typescript version](https://img.shields.io/badge/typescript-4.9.4-brightgreen)](https://www.typescriptlang.org/) | ||
[![eslint version](https://img.shields.io/badge/eslint-8.30.0-brightgreen)](https://github.com/eslint) | ||
[![cypress version](https://img.shields.io/badge/cypress-12.2.0-brightgreen)](https://www.cypress.io/) | ||
[![vite version](https://img.shields.io/badge/vite-4.0.4-brightgreen)](https://vitejs.dev/) | ||
[![prettier version](https://img.shields.io/badge/prettier-2.8.3-brightgreen)](https://prettier.io/) | ||
@@ -23,7 +25,6 @@ | ||
* [How to use](https://github.com/thednp/bootstrap.native/wiki/How-to-use) - An in depth guide on how to use the library. | ||
* [CDN Links](https://github.com/thednp/bootstrap.native/wiki/How-to-use#load-from-cdn) - use CDN links available on [jsdelivr](https://www.jsdelivr.com/package/npm/bootstrap.native) and [cdnjs](https://cdnjs.com/libraries/bootstrap.native) | ||
* [CDN Links](https://github.com/thednp/bootstrap.native/wiki/How-to-use#load-from-cdn) - use CDN links available on [jsdelivr](https://www.jsdelivr.com/package/npm/bootstrap.native) | ||
* [Locally Hosted](https://github.com/thednp/bootstrap.native/wiki/How-to-use#working-locally) - download and copy in your project `assets/js` folder, then use proper markup to enable BSN on your pages | ||
* [ES6+ Example](https://github.com/thednp/bootstrap.native/wiki/How-to-use#es6es7-basic-example) - modern application would like you to `import BSN from "bootstrap.native"` | ||
* [NPM Installation](https://github.com/thednp/bootstrap.native/wiki/How-to-use#npm) - just execute `npm install bootstrap.native` or mark it as dependency and take it from there | ||
* [Custom Builds](https://github.com/thednp/bootstrap.native/wiki/How-to-use#custom-builds) - use rollup build scripts to create your own custom builds, only with the components you need | ||
* [Dynamic Content](https://github.com/thednp/bootstrap.native/wiki/How-to-use#dynamic-content) - use the library callbacks with your `turbolinks:load`, `mount`, `load` and similar events | ||
@@ -30,0 +31,0 @@ * [RequireJS/CommonJS](https://github.com/thednp/bootstrap.native/wiki/How-to-use#requirejs-commonjs) - NodeJS applications would like you to `const BSN = require("bootstrap.native")` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
127
42
1299487
19
10248
1
1
+ Added@thednp/event-listener@2.0.8(transitive)
+ Added@thednp/shorty@2.0.10(transitive)
- Removed@thednp/event-listener@1.0.4(transitive)
- Removed@thednp/shorty@1.0.3(transitive)