Skip to content

Commit

Permalink
Merge pull request #177 from web-mech/next
Browse files Browse the repository at this point in the history
next
  • Loading branch information
web-mech authored Aug 18, 2024
2 parents b1fa88f + c82cb24 commit 3c91e5b
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Docs to Pages

on:
push:
branches: ['main']
branches: ['main', 'next']
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: EndBug/add-and-commit@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: standard-version
- run: git push --follow-tags origin main && npm publish
- run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
89 changes: 43 additions & 46 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,122 +2,119 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [3.0.4](https://github.com/web-mech/badwords/compare/v3.0.3...v3.0.4) (2020-11-16)

<a name="3.0.3"></a>
## [3.0.3](https://github.com/web-mech/badwords/compare/v3.0.2...v3.0.3) (2019-07-25)
## [4.0.0-0](https://github.com/web-mech/badwords/compare/v3.0.4...v4.0.0-0) (2024-08-18)

### ⚠ BREAKING CHANGES

- this release moving forward is only intended for v4 onward. please upgrade and test with caution before using in production.

<a name="3.0.2"></a>
## [3.0.2](https://github.com/web-mech/badwords/compare/v3.0.1...v3.0.2) (2019-03-14)
### Features

- add one more test case in filter ([2ab9783](https://github.com/web-mech/badwords/commit/2ab978315beb0a347f4af1f5ee33bd95d7d3e020))
- split string with backspace or underscore ([465d625](https://github.com/web-mech/badwords/commit/465d625debd165617cc446377de71c22515cbbd4))

### Bug Fixes

* **lang.json:** remove gay from badwords ([88d1aed](https://github.com/web-mech/badwords/commit/88d1aed))
- **action:** install NPM dependencies ([b29c6c8](https://github.com/web-mech/badwords/commit/b29c6c82fbedcaf43548749c457a56407dbe0bc5))
- append single word filter test case ([43c8530](https://github.com/web-mech/badwords/commit/43c85301e644bbd4de5d587526ba0a9fa4cfed64))
- change filter title to not multilingual word ([cf8e4bc](https://github.com/web-mech/badwords/commit/cf8e4bc5996fb595a113c8c114886cec61715b68))

- v4 ([30d5d9f](https://github.com/web-mech/badwords/commit/30d5d9f014854fef4586a73e15a14d43832fe78e))

### [3.0.4](https://github.com/web-mech/badwords/compare/v3.0.3...v3.0.4) (2020-11-16)

<a name="3.0.1"></a>
## [3.0.1](https://github.com/web-mech/badwords/compare/v3.0.0...v3.0.1) (2019-02-19)
<a name="3.0.3"></a>

## [3.0.3](https://github.com/web-mech/badwords/compare/v3.0.2...v3.0.3) (2019-07-25)

<a name="3.0.2"></a>

## [3.0.2](https://github.com/web-mech/badwords/compare/v3.0.1...v3.0.2) (2019-03-14)

### Bug Fixes

* update removeWords functionality to be case-insensitive ([235121d](https://github.com/web-mech/badwords/commit/235121d))
- **lang.json:** remove gay from badwords ([88d1aed](https://github.com/web-mech/badwords/commit/88d1aed))

<a name="3.0.1"></a>

## [3.0.1](https://github.com/web-mech/badwords/compare/v3.0.0...v3.0.1) (2019-02-19)

### Bug Fixes

- update removeWords functionality to be case-insensitive ([235121d](https://github.com/web-mech/badwords/commit/235121d))

<a name="3.0.0"></a>
# [3.0.0](https://github.com/web-mech/badwords/compare/v2.0.0...v3.0.0) (2018-10-23)

# [3.0.0](https://github.com/web-mech/badwords/compare/v2.0.0...v3.0.0) (2018-10-23)

### Code Refactoring

* utilize es6 spread in addWords/removeWords ([656b87c](https://github.com/web-mech/badwords/commit/656b87c))

- utilize es6 spread in addWords/removeWords ([656b87c](https://github.com/web-mech/badwords/commit/656b87c))

### BREAKING CHANGES

* changes the way addWords is used, no longer accepts a single array as a parameter unless used with the spread operator


- changes the way addWords is used, no longer accepts a single array as a parameter unless used with the spread operator

<a name="2.0.0"></a>
# [2.0.0](https://github.com/web-mech/badwords/compare/v1.6.5...v2.0.0) (2018-10-23)

# [2.0.0](https://github.com/web-mech/badwords/compare/v1.6.5...v2.0.0) (2018-10-23)

### Documentation

* update documentation. add requirements for using lib moving forward ([9b2831d](https://github.com/web-mech/badwords/commit/9b2831d))

- update documentation. add requirements for using lib moving forward ([9b2831d](https://github.com/web-mech/badwords/commit/9b2831d))

### Features

* **profane:** support profane phrases and well as words ([995ea1e](https://github.com/web-mech/badwords/commit/995ea1e))

- **profane:** support profane phrases and well as words ([995ea1e](https://github.com/web-mech/badwords/commit/995ea1e))

### BREAKING CHANGES

* moving into es2016+ language features


- moving into es2016+ language features

<a name="1.6.5"></a>
## [1.6.5](https://github.com/web-mech/badwords/compare/v1.6.4...v1.6.5) (2018-10-23)


## [1.6.5](https://github.com/web-mech/badwords/compare/v1.6.4...v1.6.5) (2018-10-23)

<a name="1.6.4"></a>
## [1.6.4](https://github.com/web-mech/badwords/compare/v1.6.3...v1.6.4) (2018-09-21)

## [1.6.4](https://github.com/web-mech/badwords/compare/v1.6.3...v1.6.4) (2018-09-21)

### Bug Fixes

* **isProfane:** Adding regex word boundary for isProfane ([3908f3c](https://github.com/web-mech/badwords/commit/3908f3c))


- **isProfane:** Adding regex word boundary for isProfane ([3908f3c](https://github.com/web-mech/badwords/commit/3908f3c))

<a name="1.6.3"></a>
## [1.6.3](https://github.com/web-mech/badwords/compare/v1.6.2...v1.6.3) (2018-08-02)


## [1.6.3](https://github.com/web-mech/badwords/compare/v1.6.2...v1.6.3) (2018-08-02)

<a name="1.6.2"></a>
## [1.6.2](https://github.com/web-mech/badwords/compare/v1.6.1...v1.6.2) (2018-08-02)

## [1.6.2](https://github.com/web-mech/badwords/compare/v1.6.1...v1.6.2) (2018-08-02)

### Bug Fixes

* **isProfaneLike:** abort trying to match every instance of profane words. ([31126d6](https://github.com/web-mech/badwords/commit/31126d6))


- **isProfaneLike:** abort trying to match every instance of profane words. ([31126d6](https://github.com/web-mech/badwords/commit/31126d6))

<a name="1.6.1"></a>
## [1.6.1](https://github.com/web-mech/badwords/compare/v1.6.0...v1.6.1) (2017-10-25)

## [1.6.1](https://github.com/web-mech/badwords/compare/v1.6.0...v1.6.1) (2017-10-25)

### Bug Fixes

* **isProfaneLike:** fix case sensitive checks within list ([bfa05ce](https://github.com/web-mech/badwords/commit/bfa05ce))


- **isProfaneLike:** fix case sensitive checks within list ([bfa05ce](https://github.com/web-mech/badwords/commit/bfa05ce))

<a name="1.6.0"></a>
# [1.6.0](https://github.com/web-mech/badwords/compare/v1.5.2...v1.6.0) (2017-10-16)

# [1.6.0](https://github.com/web-mech/badwords/compare/v1.5.2...v1.6.0) (2017-10-16)

### Features

* fixes and updates ([8049222](https://github.com/web-mech/badwords/commit/8049222))


- fixes and updates ([8049222](https://github.com/web-mech/badwords/commit/8049222))

<a name="1.5.2"></a>
## [1.5.2](https://github.com/web-mech/badwords/compare/v1.5.1...v1.5.2) (2017-10-16)

## [1.5.2](https://github.com/web-mech/badwords/compare/v1.5.1...v1.5.2) (2017-10-16)

### Bug Fixes

* support for better filtering ([7c8d0e2](https://github.com/web-mech/badwords/commit/7c8d0e2))
- support for better filtering ([7c8d0e2](https://github.com/web-mech/badwords/commit/7c8d0e2))
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ build:
@yarn build

docs:
@yarn docs && yarn typedoc
@yarn typedoc
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

A javascript filter for badwords

[![Testing Testing](https://github.com/web-mech/badwords/actions/workflows/test.yml/badge.svg)](https://github.com/web-mech/badwords/actions/workflows/test.yml)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
[![TypeDoc](https://img.shields.io/badge/docs-typedoc-blue.svg)](https://web-mech.github.io/badwords/)

## Requirements

Expand Down Expand Up @@ -89,17 +91,13 @@ filter.removeWords(...removeWords)
filter.clean('some sadist hells word!') //some sadist hells word!
```

#### Table of Contents
## API Reference

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents
Check out [TypeDoc Documentation](https://web-mech.github.io/badwords/)

## Testing

npm test
yarn test

## License

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bad-words",
"version": "3.0.4",
"version": "4.0.0-0",
"description": "A javascript filter for bad words",
"main": "dist/index.js",
"type": "module",
Expand All @@ -23,7 +23,7 @@
"build": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json",
"prepublishOnly": "tsc",
"prepare": "husky && tsc",
"rc": "npm version prerelease && git push --follow-tags && npm publish",
"rc": "standard-version --prerelease && git push --follow-tags && npm publish",
"release": "standard-version && git push --follow-tags && npm publish",
"test": "ava",
"typedoc": "typedoc --out docs ./src/badwords.ts"
Expand All @@ -39,7 +39,7 @@
"filter"
],
"dependencies": {
"badwords-list": "^2.0.1-3"
"badwords-list": "^2.0.1-4"
},
"devDependencies": {
"@ava/typescript": "^5.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1933,10 +1933,10 @@ babylon@^6.18.0:
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==

badwords-list@^2.0.1-3:
version "2.0.1-3"
resolved "https://registry.yarnpkg.com/badwords-list/-/badwords-list-2.0.1-3.tgz#8eaaa6e9df7676027224fb91616a7de6d9e4d4d6"
integrity sha512-nhL0LTLFeiCVGc0W8vM5/A5SOkuNsC+HCbt9dMoZh+Dyn0Rb++mllinmCnliWUZWqg7R0pzTNjX3I+RiPcvKHQ==
badwords-list@^2.0.1-4:
version "2.0.1-4"
resolved "https://registry.yarnpkg.com/badwords-list/-/badwords-list-2.0.1-4.tgz#a6705b6f1c775f795bce1f34b854e44b44bf64a0"
integrity sha512-FxfZUp7B9yCnesNtFQS9v6PvZdxTYa14Q60JR6vhjdQdWI4naTjJIyx22JzoER8ooeT8SAAKoHLjKfCV7XgYUQ==

bail@^1.0.0:
version "1.0.5"
Expand Down

0 comments on commit 3c91e5b

Please sign in to comment.