Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
417279f
Merge pull request #336 from palcarazm/v5
palcarazm Jun 28, 2026
64929f8
ci: enhance Coveralls integration and add code change detection for s…
palcarazm Jun 28, 2026
ad3e5f9
ci: update code change detection regex and remove pull request trigge…
palcarazm Jun 28, 2026
c872513
ci: improve code change detection logic in CI workflow
palcarazm Jun 28, 2026
123538d
ci: enhance code change detection by using changed-files action
palcarazm Jun 28, 2026
ccdf1f3
ci: add workflow for publishing package to npmJS on release
palcarazm Jun 28, 2026
f4ea3c7
ci: update deploy workflow to trigger on release instead of push
palcarazm Jun 28, 2026
8ace681
ci(deps): bump the minor-and-patch-updates group with 2 updates
dependabot[bot] Jul 3, 2026
a3f935a
ci(deps): bump actions/checkout from 6 to 7
dependabot[bot] Jul 3, 2026
8c2df84
chore(docs): bump the version-updates group in /docs with 2 updates
dependabot[bot] Jul 3, 2026
68e7d6c
ci(deps): bump actions/github-script from 7 to 9
dependabot[bot] Jul 3, 2026
1a025fc
Merge pull request #338 from palcarazm/dependabot/github_actions/mino…
palcarazm Jul 6, 2026
8cc5643
Merge pull request #339 from palcarazm/dependabot/github_actions/acti…
palcarazm Jul 6, 2026
3a30c93
Merge pull request #340 from palcarazm/dependabot/npm_and_yarn/docs/v…
palcarazm Jul 6, 2026
1022ed2
Merge pull request #341 from palcarazm/dependabot/github_actions/acti…
palcarazm Jul 6, 2026
6128aaf
chore(docs): bump @fortawesome/fontawesome-free
dependabot[bot] Jul 17, 2026
e5d1c81
ci(deps): bump actions/setup-node from 6 to 7
dependabot[bot] Jul 17, 2026
27641c8
ci(deps): bump the minor-and-patch-updates group across 1 directory w…
dependabot[bot] Aug 7, 2026
42c4955
Merge pull request #348 from palcarazm/dependabot/github_actions/mino…
palcarazm Aug 13, 2026
0649673
Merge pull request #346 from palcarazm/dependabot/github_actions/acti…
palcarazm Aug 13, 2026
cd95a28
Merge pull request #344 from palcarazm/dependabot/npm_and_yarn/docs/v…
palcarazm Aug 13, 2026
0f66b62
chore(docs): bump @highlightjs/cdn-assets
dependabot[bot] Aug 21, 2026
c029c5f
ci(deps): bump cypress-io/github-action
dependabot[bot] Aug 21, 2026
c145635
Merge pull request #349 from palcarazm/dependabot/npm_and_yarn/docs/v…
palcarazm Aug 22, 2026
74ae59b
Merge pull request #350 from palcarazm/dependabot/github_actions/mino…
palcarazm Aug 22, 2026
3e26d3c
ci(deps): bump cypress-io/github-action
dependabot[bot] Aug 28, 2026
2a3a585
Merge pull request #351 from palcarazm/dependabot/github_actions/mino…
palcarazm Aug 28, 2026
fd01929
chore(deps-dev): bump postcss-cli from 11.0.1 to 12.0.0
dependabot[bot] Sep 11, 2026
ed76254
chore(docs): bump the version-updates group across 1 directory with 2…
dependabot[bot] Sep 11, 2026
f33a2c4
chore(deps-dev): bump cypress from 15.21.1 to 16.0.0
dependabot[bot] Sep 11, 2026
266a214
Merge pull request #357 from palcarazm/dependabot/npm_and_yarn/cypres…
palcarazm Sep 11, 2026
5ee9afd
Merge pull request #355 from palcarazm/dependabot/npm_and_yarn/docs/v…
palcarazm Sep 11, 2026
07670ce
chore(deps-dev): bump cssnano from 8.0.10 to 9.0.4
dependabot[bot] Sep 11, 2026
e23576c
Merge pull request #356 from palcarazm/dependabot/npm_and_yarn/cssnan…
palcarazm Sep 11, 2026
f6bb93c
Merge pull request #354 from palcarazm/dependabot/npm_and_yarn/postcs…
palcarazm Sep 11, 2026
af7c850
feat: integrate component-lifecycle library into Toggle component (#371)
palcarazm Oct 18, 2026
f47408f
ci(deps): bump the minor-and-patch-updates group across 1 directory w…
dependabot[bot] Oct 23, 2026
427f37f
feat: expose Monitor singleton as window.BootstrapToggle.MONITOR
palcarazm Oct 23, 2026
eeb5475
Merge pull request #374 from palcarazm/issue/260
palcarazm Oct 23, 2026
6445a12
feat: add Node.js 26 LTS to supported engines
palcarazm Oct 23, 2026
79b0800
Merge pull request #376 from palcarazm/issue/375
palcarazm Oct 23, 2026
3638ada
docs: document component-lifecycle integration and chainable events
palcarazm Oct 23, 2026
95abdd7
style(docs): reformat docs/src to project 4-space indentation
palcarazm Oct 23, 2026
6f84d1a
chore(docs): address Sonar findings in events documentation
palcarazm Oct 23, 2026
f28ac22
Merge pull request #377 from palcarazm/issue/372
palcarazm Oct 23, 2026
597ce2f
docs: add async lifecycle notes to Usage, InputInteraction, and Methods
palcarazm Oct 23, 2026
4f464ed
chore: bump component-lifecycle from 2.0.0 to 2.1.0
palcarazm Oct 24, 2026
ca3dd22
ci: rename publish workflow to release workflow
palcarazm Oct 24, 2026
6bdc5c7
ci: remove comment to version that are not aligned to commit sha
palcarazm Oct 24, 2026
8357a58
Merge pull request #358 from palcarazm/dependabot/github_actions/mino…
palcarazm Oct 24, 2026
6c1eec6
5.5.0
palcarazm Oct 24, 2026
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
96 changes: 80 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
node-version: [22.x, 24.x, 26.x]
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand All @@ -42,11 +42,11 @@ jobs:
name: coverage-report-${{ matrix.node-version }}
path: coverage
- name: Upload coverage report to Coveralls
#v2.3.7
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329
with:
flag-name: coverage-report-${{ matrix.node-version }}
parallel: true
continue-on-error: true

coverage-finished:
name: Publish coverage report to Coveralls
Expand All @@ -55,11 +55,50 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
#v2.3.7
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
id: coveralls
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329
with:
parallel-finished: true
carryforward: "coverage-report-22.x,coverage-report-24.x"
carryforward: "coverage-report-22.x,coverage-report-24.x,coverage-report-26.x"
continue-on-error: true

- name: Check Coveralls status
id: check-status
if: always()
run: |
if [ "${{ steps.coveralls.outcome }}" == "success" ]; then
echo "✅ Coveralls report submitted successfully"
echo "status=success" >> $GITHUB_OUTPUT
elif [ "${{ steps.coveralls.outcome }}" == "failure" ]; then
echo "⚠️ Coveralls service is temporarily unavailable"
echo "status=neutral" >> $GITHUB_OUTPUT
else
echo "❓ Coveralls status unknown: ${{ steps.coveralls.outcome }}"
echo "status=neutral" >> $GITHUB_OUTPUT
fi

- name: Set neutral status (if needed)
if: steps.check-status.outputs.status == 'neutral'
uses: actions/github-script@v9
with:
script: |
const { context } = require('@actions/github');
const owner = context.repo.owner;
const repo = context.repo.repo;
const sha = context.sha;

await github.rest.checks.create({
owner,
repo,
name: 'Coveralls / Coverage Report',
head_sha: sha,
status: 'completed',
conclusion: 'neutral',
output: {
title: 'Coveralls service temporarily unavailable',
summary: '⚠️ Coveralls is currently experiencing issues. The coverage report will be submitted when the service is available again.\n\nThis check is marked as neutral and does not block the PR.'
}
});

cypress:
name: Run e2e tests with Cypress
Expand All @@ -70,14 +109,13 @@ jobs:
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Cypress run
#v6.10.8
uses: cypress-io/github-action@948d67d3074f1bbb6379c8bdbb04e95d2f8e593f
uses: cypress-io/github-action@c541a95ea92d9239347a2355f2e895cd4b3f8060
with:
browser: chrome

Expand All @@ -91,7 +129,7 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
Expand All @@ -107,18 +145,44 @@ jobs:
needs: build-and-test
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96
with:
files: |
**
files_ignore: |
package.json
.npmrc
**/*.md
.github/**
.gitignore

- name: Check if code changes exist
id: check-changes
run: |
if [ "${{ steps.changed-files.outputs.any_changed }}" == "true" ]; then
echo "has_code_changes=true" >> $GITHUB_OUTPUT
echo "📝 Code changes detected in:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
else
echo "has_code_changes=false" >> $GITHUB_OUTPUT
echo "📦 Only dependency, documentation or CI/CD files changed"
fi

- name: Download coverage artifact
if: steps.check-changes.outputs.has_code_changes == 'true'
uses: actions/download-artifact@v8
with:
name: coverage-report-22.x
name: coverage-report-26.x
path: coverage

- name: SonarQube Scan
# v7.0.0
uses: SonarSource/sonarqube-scan-action@59db25f34e16620e48ab4bb9e4a5dce155cb5432
if: steps.check-changes.outputs.has_code_changes == 'true'
uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12 changes: 5 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Deploy documentation

on:
push:
branches: [ "v5" ]
pull_request:
branches: [ "v5" ]
release:
types: [published]
workflow_dispatch:

permissions:
Expand All @@ -24,11 +22,11 @@ jobs:
working-directory: docs
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Use Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: 24.x
node-version: 26.x
- name: Install dependencies
run: npm install
- name: Build
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Package to npmJS

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
node-version: '26.x'

- name: Install dependencies
run: npm install
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

- name: Determine npm tag
id: npm-tag
run: |
RELEASE_NAME="${{ github.event.release.name }}"
RELEASE_TAG="${{ github.event.release.tag_name }}"

echo "📦 Release name: $RELEASE_NAME"
echo "🏷️ Release tag: $RELEASE_TAG"

if [ "${{ github.event.release.prerelease }}" == "true" ]; then
echo "🔬 Prerelease detected - using 'next' tag"
echo "tag=next" >> $GITHUB_OUTPUT
else
echo "🚀 Full release detected - using 'latest' tag"
echo "tag=latest" >> $GITHUB_OUTPUT
fi

- name: Stage publish to npm
run: |
npm stage publish --provenance --access public --tag ${{ steps.npm-tag.outputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Installation](#installation)
- [CDN](#cdn)
- [ECMAS Interface](#ecmas-interface)
Expand All @@ -54,6 +53,7 @@ See EOL for each version in [Security Policy Page](https://github.com/palcarazm/

<!-- END doctoc generated TOC please keep comment here to allow auto update -->


---

# Installation
Expand All @@ -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.1/css/bootstrap5-toggle.min.css"
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.5.0/css/bootstrap5-toggle.min.css"
rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/js/bootstrap5-toggle.ecmas.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.5.0/js/bootstrap5-toggle.ecmas.min.js"></script>
```

### jQuery Interface

```html
<link
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/css/bootstrap5-toggle.min.css"
href="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.5.0/css/bootstrap5-toggle.min.css"
rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.4.1/js/bootstrap5-toggle.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap5-toggle@5.5.0/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.1
npm install bootstrap5-toggle@5.5.0
```

## Yarn

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

# Usage
Expand Down
1 change: 0 additions & 1 deletion cypress.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
allowCypressEnv: false,
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
Expand Down
Loading
Loading