Skip to content
Merged
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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/

```html
<link
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.0/css/bootstrap5-toggle.min.css"
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/css/bootstrap5-toggle.min.css"
rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.0/js/bootstrap5-toggle.ecmas.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/js/bootstrap5-toggle.ecmas.min.js"></script>
```

### jQuery Interface

```html
<link
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.0/css/bootstrap5-toggle.min.css"
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/css/bootstrap5-toggle.min.css"
rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.0/js/bootstrap5-toggle.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/js/bootstrap5-toggle.jquery.min.js"></script>
```

## Download
Expand All @@ -89,13 +89,13 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/
[![NPM Badge](https://img.shields.io/npm/dm/bootstrap5-toggle?logo=npm)](https://www.npmjs.com/package/bootstrap5-toggle)

```ksh
npm install bootstrap5-toggle@5.4.0
npm install bootstrap5-toggle@5.4.1
```

## Yarn

```ksh
yarn add bootstrap5-toggle@5.4.0
yarn add bootstrap5-toggle@5.4.1
```

# Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@fortawesome/fontawesome-free": "7.2.0",
"@highlightjs/cdn-assets": "11.11.1",
"bootstrap": "5.3.8",
"bootstrap5-toggle": "5.4.0",
"bootstrap5-toggle": "5.4.1",
"bs-darkmode-toggle": "1.0.0",
"highlightjs-badge": "0.1.9",
"jquery": "4.0.0"
Expand Down
47 changes: 24 additions & 23 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
setupFilesAfterEnv: ["<rootDir>/src/test/setup/dom.setup.ts", "<rootDir>/src/test/setup/events.setup.ts"],
transform: {
"^.+\\.ts$": ["ts-jest", {
tsconfig: "tsconfig.test.json",
}],
},
collectCoverageFrom: [
"src/main/ts/**/*.ts",
"!**/index*.ts",
"!src/main/ts/types/**/*.ts",
],
coverageThreshold: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
coverageDirectory: "coverage",
reporters: [["github-actions", {silent: false}], "summary"],
preset: "ts-jest",
testEnvironment: "jsdom",
setupFilesAfterEnv: ["<rootDir>/src/test/setup/dom.setup.ts", "<rootDir>/src/test/setup/events.setup.ts"],
testMatch: ["<rootDir>/src/test/ts/**/*.test.ts"],
transform: {
"^.+\\.ts$": ["ts-jest", {
tsconfig: "tsconfig.test.json",
}],
},
collectCoverageFrom: [
"src/main/ts/**/*.ts",
"!**/index*.ts",
"!src/main/ts/types/**/*.ts",
],
coverageThreshold: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
coverageDirectory: "coverage",
reporters: [["github-actions", { silent: false }], "summary"],
};
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap5-toggle",
"version": "5.4.0",
"version": "5.4.1",
"type": "module",
"author": {
"name": "Pablo Alcaraz Martínez",
Expand All @@ -19,7 +19,10 @@
"module": "dist/bootstrap5-toggle.mjs",
"types": "dist/bootstrap5-toggle.d.ts",
"typings": "dist/bootstrap5-toggle.d.ts",
"sideEffects": false,
"sideEffects": [
"css/*.css",
"js/*.js"
],
"files": [
"css/*",
"js/*",
Expand Down Expand Up @@ -49,8 +52,8 @@
"postversion": "git push --follow-tags",
"prepack": "npm run build && npm run version:update && doctoc README.md --github",
"test": "npm run test:unit && npm run test:e2e",
"test:e2e": "cypress run --headless",
"test:unit": "jest --coverage",
"test:e2e": "cypress run --headless",
"lint": "eslint ./src",
"prepare": "husky"
},
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ sonar.organization=palcarazm
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.typescript.tsconfigPath=tsconfig.json

sonar.coverage.exclusions=docs/**,test/**,cypress/**,src/test/**,src/main/js/**,src/main/ts/**/index*.ts,src/main/ts/types/**
sonar.coverage.exclusions=docs/**,test/**,cypress/**,src/test/**,src/main/js/**,src/main/ts/**/index*.ts,src/main/ts/types/**,*.config.js,*.config.mjs,*.config.cjs
sonar.cpd.exclusions=test/**,cypress/**,src/test/**
Loading