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
6 changes: 0 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ on:
- main
paths:
- 'docs/**'
- 'js/**'
- 'less/**'
- 'sass/**'
- 'Gruntfile.js'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/deploy-docs.yml'
workflow_dispatch:

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/publish_npm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,20 @@ jobs:
node-version: '20.19'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
scope: '@crestapps'
always-auth: true

- name: Validate npm publish prerequisites
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm whoami
PACKAGE_NAME=$(node -p "require('./package.json').name")
if [[ "$PACKAGE_NAME" != @* ]] && ! npm view "$PACKAGE_NAME" version >/dev/null 2>&1; then
echo "::error title=Initial unscoped npm publish requires a different token::Package '$PACKAGE_NAME' does not exist on npm yet. First-time publish of a new unscoped package usually cannot be done with an npm automation token from GitHub Actions. Publish it once manually with an npm publish-capable user token/session, or rename it to a scoped package and retry."
exit 1
fi

- name: Build assets
run: |
npm ci
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v1.0.0 (CrestApps fork)
# v1.0.1 (CrestApps fork)

This is the first release of the CrestApps fork of
[snapappointments/bootstrap-select](https://github.com/snapappointments/bootstrap-select).
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<a href="https://github.com/CrestApps/crestapps-bootstrap-select/blob/main/LICENSE" target="_blank">
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="License">
</a>
<a href="https://www.npmjs.com/package/crestapps-bootstrap-select" target="_blank">
<img src="https://img.shields.io/npm/v/crestapps-bootstrap-select.svg" alt="npm version">
<a href="https://www.npmjs.com/package/@crestapps/bootstrap-select" target="_blank">
<img src="https://img.shields.io/npm/v/%40crestapps%2Fbootstrap-select.svg" alt="npm version">
</a>
<a href="https://bootstrap-select.crestapps.com" target="_blank">
<img src="https://img.shields.io/badge/docs-bootstrap--select.crestapps.com-0a7bbb.svg" alt="Documentation">
Expand Down Expand Up @@ -41,10 +41,10 @@ following goals:

## Quick start

Install with [npm](https://www.npmjs.com/package/crestapps-bootstrap-select):
Install with [npm](https://www.npmjs.com/package/@crestapps/bootstrap-select):

```sh
npm install crestapps-bootstrap-select bootstrap
npm install @crestapps/bootstrap-select bootstrap
```

Load Bootstrap 5, then bootstrap-select's CSS and JS. **Load bootstrap-select
Expand Down Expand Up @@ -73,9 +73,9 @@ jsDelivr. Prefer pinning an explicit package version in production:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>

<!-- crestapps-bootstrap-select from jsDelivr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/crestapps-bootstrap-select@1.0.0/dist/css/bootstrap-select.min.css">
<script src="https://cdn.jsdelivr.net/npm/crestapps-bootstrap-select@1.0.0/dist/js/bootstrap-select.min.js"></script>
<!-- @crestapps/bootstrap-select from jsDelivr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@crestapps/bootstrap-select@1.0.1/dist/css/bootstrap-select.min.css">
<script src="https://cdn.jsdelivr.net/npm/@crestapps/bootstrap-select@1.0.1/dist/js/bootstrap-select.min.js"></script>
```

You can replace `@1.0.0` with the version you want to consume. During
Expand All @@ -86,7 +86,7 @@ When loaded via a `<script>` tag, the plugin exposes a global `Selectpicker`
class. Modern JavaScript can import the ES module entry:

```js
import Selectpicker from 'crestapps-bootstrap-select';
import Selectpicker from '@crestapps/bootstrap-select';
```

## Usage
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ This is the CrestApps fork of [snapappointments/bootstrap-select](https://github
bootstrap-select requires **Bootstrap 5+** (CSS and JS, including its bundled Popper).
jQuery is **not** required.

Install with [npm](https://www.npmjs.com/package/crestapps-bootstrap-select):
Install with [npm](https://www.npmjs.com/package/@crestapps/bootstrap-select):

```sh
npm install crestapps-bootstrap-select bootstrap
npm install @crestapps/bootstrap-select bootstrap
```

Load Bootstrap 5 first, then bootstrap-select's CSS and JS (after Bootstrap's JavaScript):
Expand Down Expand Up @@ -46,19 +46,19 @@ Prefer pinning an explicit package version in production:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>

<!-- crestapps-bootstrap-select from jsDelivr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/crestapps-bootstrap-select@1.0.0/dist/css/bootstrap-select.min.css">
<script src="https://cdn.jsdelivr.net/npm/crestapps-bootstrap-select@1.0.0/dist/js/bootstrap-select.min.js"></script>
<!-- @crestapps/bootstrap-select from jsDelivr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@crestapps/bootstrap-select@1.0.1/dist/css/bootstrap-select.min.css">
<script src="https://cdn.jsdelivr.net/npm/@crestapps/bootstrap-select@1.0.1/dist/js/bootstrap-select.min.js"></script>
```

You can replace `@1.0.0` with the version you want to consume. During development,
You can replace `@1.0.1` with the version you want to consume. During development,
`@latest` also works, but a fixed version is safer for production deployments.

When loaded via a `<script>` tag, the plugin exposes a global `Selectpicker` class.
Modern JavaScript can import the ES module entry:

```js
import Selectpicker from 'crestapps-bootstrap-select';
import Selectpicker from '@crestapps/bootstrap-select';
```

# Usage
Expand Down
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -3230,7 +3230,7 @@ class Selectpicker {
var instanceMap = new WeakMap();

Selectpicker.NAME = 'selectpicker';
Selectpicker.VERSION = '1.0.0';
Selectpicker.VERSION = '1.0.1';

// user-provided global defaults (set via Selectpicker.setDefaults, used by i18n files)
Selectpicker.defaults = null;
Expand Down
2 changes: 1 addition & 1 deletion nuget/bootstrap-select.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>bootstrap-select</id>
<version>1.0.0</version>
<version>1.0.1</version>
<title>bootstrap-select</title>
<authors>CrestApps, Casey Holzer, Silvio Moreto, SnapAppointments LLC</authors>
<owners>CrestApps</owners>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "crestapps-bootstrap-select",
"name": "@crestapps/bootstrap-select",
"title": "bootstrap-select",
"main": "dist/js/bootstrap-select.js",
"module": "dist/js/bootstrap-select.esm.mjs",
Expand Down Expand Up @@ -27,7 +27,7 @@
"README.md"
],
"description": "A dependency-free, vanilla JavaScript plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Supports Bootstrap 5+. Forked from snapappointments/bootstrap-select with jQuery and Bootstrap 3/4 support removed.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/CrestApps/crestapps-bootstrap-select",
"author": {
"name": "CrestApps",
Expand Down Expand Up @@ -55,6 +55,9 @@
"url": "https://github.com/CrestApps/crestapps-bootstrap-select/issues"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"bootstrap": ">=5.0.0"
},
Expand Down