Skip to content

Commit 940a654

Browse files
committed
feat: simpler algo wip
1 parent 8103161 commit 940a654

18 files changed

+1979
-2000
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
strategy:
2929
matrix:
30-
node: [16]
30+
node: [18]
3131
steps:
3232
- uses: actions/checkout@v3
3333
- uses: actions/setup-node@v3
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@v3
5050
- uses: actions/setup-node@v3
5151
with:
52-
node-version: 16
52+
node-version: 18
5353
cache: 'yarn'
5454
- name: Build and release
5555
run: |

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# CHANGELOG
22

3+
**v0.2.0:** **⚠️ BREAKING CHANGE**
4+
- **Breaking change**: IDs change. Algorithm has been fine-tuned for better performance [[Issue #11](https://github.com/sqids/sqids-spec/issues/11)]
5+
- Changed minimum Node.js version from 16 to 18
6+
- `alphabet` cannot contain multibyte characters
7+
- `minLength` upper limit has increased from alphabet length to `255`
8+
- Max blocklist re-encoding attempts has been capped at the length of the alphabet - 1
9+
- Minimum alphabet length has changed from 5 to 3
10+
- `minValue()` and `maxValue()` functions have been removed
11+
- Max integer encoding value is `Number.MAX_SAFE_INTEGER`
12+
313
**v0.1.3:**
414
- Bug fix: spec update: blocklist filtering in uppercase-only alphabet [[PR #7](https://github.com/sqids/sqids-spec/pull/7)]
515
- Dev dependencies updated

cjs/blocklist.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const _default: string[];
2+
export default _default;

0 commit comments

Comments
 (0)