Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ai/nanoid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.1.30
Choose a base ref
...
head repository: ai/nanoid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.3.7
Choose a head ref

Commits on Oct 26, 2021

  1. Add link to ColdFusion/CFML Port (#312)

    * Add link to ColdFusion/CFML Port
    
    * Add link to ColdFusion/CFML Port
    
    * Add link to ColdFusion/CFML Port
    JamoCA authored Oct 26, 2021
    Copy the full SHA
    471cd7f View commit details
  2. Fix spelling check

    ai committed Oct 26, 2021
    Copy the full SHA
    13eb273 View commit details
  3. Update dependencies

    ai committed Oct 26, 2021
    3
    Copy the full SHA
    24ae005 View commit details
  4. Update "other language count" to 20 (#313)

    * Add link to ColdFusion/CFML Port
    
    * Add link to ColdFusion/CFML Port
    
    * Add link to ColdFusion/CFML Port
    
    * Update other language count to 20
    
    * Update other language count to 20
    
    * Update other language count to 20
    JamoCA authored Oct 26, 2021
    Copy the full SHA
    e420d89 View commit details

Commits on Nov 4, 2021

  1. Remove HTML id advice (#316)

    HTML5 lifted the restrictions on `id` values, which are now essentially any character sequence: https://mathiasbynens.be/notes/html5-id-class
    
    This was specced about 11 years ago and made with HTML ≤4.01 backwards compatibility in mind. It should be safe to no longer worry about this.
    tigt authored Nov 4, 2021
    Copy the full SHA
    517ba81 View commit details

Commits on Nov 17, 2021

  1. Add Unison library implementation (#318)

    Add a link in all readmes to the [Unison](https://unison-lang.org)
    library implementation.
    hojberg authored Nov 17, 2021
    Copy the full SHA
    f7ae443 View commit details

Commits on Nov 28, 2021

  1. Copy the full SHA
    caec94b View commit details
  2. Copy the full SHA
    81efde5 View commit details
  3. Update dependencies

    ai committed Nov 28, 2021
    Copy the full SHA
    c8eef64 View commit details
  4. Fix web demo

    ai committed Nov 28, 2021
    Copy the full SHA
    e6fdca7 View commit details

Commits on Dec 3, 2021

  1. Copy the full SHA
    efd8302 View commit details
  2. Update README.ru.md

    ai authored Dec 3, 2021
    Copy the full SHA
    aef6ea4 View commit details

Commits on Dec 12, 2021

  1. Copy the full SHA
    80b333c View commit details

Commits on Dec 24, 2021

  1. Update dependencies

    ai committed Dec 24, 2021
    Copy the full SHA
    bc35138 View commit details
  2. Move from yarn to pnpm

    ai committed Dec 24, 2021
    Copy the full SHA
    4f2c90f View commit details
  3. Fix CI

    ai committed Dec 24, 2021
    Copy the full SHA
    3e0c1be View commit details
  4. Fix CI benchmark

    ai committed Dec 24, 2021
    1
    Copy the full SHA
    ca55b32 View commit details
  5. Fix Node.js 10 on CI and pnpm

    ai committed Dec 24, 2021
    1
    Copy the full SHA
    df0c90e View commit details

Commits on Dec 30, 2021

  1. Add documentation in Bahasa Indonesia (#326)

    * docs: Add documentation in Bahasa Indonesia
    
    * docs: Add 'Bahasa Indonesia' at top
    
    * docs: Elaborate browser asynchronous limitations
    lauslim12 authored Dec 30, 2021
    2
    Copy the full SHA
    9661320 View commit details
  2. Clean up docs

    ai committed Dec 30, 2021
    Copy the full SHA
    cd56aa9 View commit details
  3. Update dependencies

    ai committed Dec 30, 2021
    Copy the full SHA
    d8712ee View commit details
  4. Fix Node.js 10 CI

    ai committed Dec 30, 2021
    Copy the full SHA
    725a241 View commit details

Commits on Jan 5, 2022

  1. Update dependencies

    ai committed Jan 5, 2022
    Copy the full SHA
    8b9a079 View commit details

Commits on Jan 10, 2022

  1. Update dependencies

    ai committed Jan 10, 2022
    Copy the full SHA
    55a935a View commit details
  2. Replace Parcel to Vite

    ai committed Jan 10, 2022
    3
    Copy the full SHA
    3b56634 View commit details

Commits on Jan 11, 2022

  1. Copy the full SHA
    2b7bd93 View commit details
  2. Update dependencies

    ai committed Jan 11, 2022
    Copy the full SHA
    e3b3942 View commit details
  3. Release 3.1.31 version

    ai committed Jan 11, 2022
    Copy the full SHA
    07fdfa6 View commit details

Commits on Jan 12, 2022

  1. Copy the full SHA
    c47fdb2 View commit details
  2. Replace Jest to uvu (#330)

    * Replace Jest to uvu
    
    * Moved c8 config to package.json
    
    * Applied fixes after review
    vitalybaev authored Jan 12, 2022
    Copy the full SHA
    58718ca View commit details
  3. Update dependencies

    ai committed Jan 12, 2022
    Copy the full SHA
    cb6cd3a View commit details
  4. Fix type check

    ai committed Jan 12, 2022
    Copy the full SHA
    d8f4574 View commit details
  5. Release 3.1.32 version

    ai committed Jan 12, 2022
    Copy the full SHA
    f425778 View commit details
  6. Copy the full SHA
    8ba2319 View commit details
  7. Update benchmark results

    ai committed Jan 12, 2022
    Copy the full SHA
    90a446f View commit details

Commits on Jan 15, 2022

  1. Copy the full SHA
    afdf9c9 View commit details
  2. Update vite

    ai committed Jan 15, 2022
    Copy the full SHA
    246d5f8 View commit details

Commits on Jan 16, 2022

  1. Allows passing size or custom alphabet via cli as args (#334)

    * Allows passing size or custom alphabet via cli as args
    
    * Increase test coverage, make work with Node 12
    vitalybaev authored Jan 16, 2022
    Copy the full SHA
    32b9bda View commit details
  2. Update dependencies

    ai committed Jan 16, 2022
    Copy the full SHA
    a9d9123 View commit details
  3. Simplify new binary tool

    ai committed Jan 16, 2022
    Copy the full SHA
    27eaa90 View commit details
  4. Remove TS test tools

    ai committed Jan 16, 2022
    Copy the full SHA
    967788e View commit details
  5. Release 3.2 version

    ai committed Jan 16, 2022
    2
    Copy the full SHA
    23b1369 View commit details
  6. Update Nano ID in dependencies

    ai committed Jan 16, 2022
    Copy the full SHA
    e82ad42 View commit details

Commits on Jan 19, 2022

  1. Update dependencies

    ai committed Jan 19, 2022
    1
    Copy the full SHA
    f057716 View commit details

Commits on Feb 3, 2022

  1. Add note about seed-based RNG

    ai committed Feb 3, 2022
    Copy the full SHA
    f1ab53a View commit details
  2. Try to fix CI

    ai committed Feb 3, 2022
    Copy the full SHA
    cfb18d7 View commit details
  3. Update dependencies

    ai committed Feb 3, 2022
    Copy the full SHA
    2ed5bdf View commit details

Commits on Feb 9, 2022

  1. Copy the full SHA
    14fb322 View commit details
  2. Update dependencies

    ai committed Feb 9, 2022
    Copy the full SHA
    7528a73 View commit details

Commits on Feb 14, 2022

  1. Attempt to make the customAlphabet API more similar to nanoid (#348)

    * Attempt to make the customAlphabet API more similar to nanoid.
    
    * Finish the rest of the functions and add test.
    stefansundin authored Feb 14, 2022
    Copy the full SHA
    38f1888 View commit details
78 changes: 49 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,80 @@
name: Test
on:
push:
branches:
- main
- v3
pull_request:
permissions:
contents: read
jobs:
full:
name: Node.js 16 Full
name: Node.js Latest Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
node-version: 21
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: yarn test
env:
FORCE_COLOR: 2
run: pnpm test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
- 10
- 20
- 18
- 16
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: npx jest
env:
FORCE_COLOR: 2
benchmark:
name: Benchmark
run: pnpm unit
old:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
node-version: 16
cache: yarn
version: 3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run benchmark
run: ./test/benchmark.js
run: pnpm install --no-frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
node_modules/
yarn-error.log

coverage/

test/demo/build
.parcel-cache
4 changes: 0 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
yarn-error.log
yarn.lock

test/
tsconfig.json
coverage/

img/
.parcel-cache
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 3.3.7
* Fixed `node16` TypeScript support (by Saadi Myftija).

## 3.3.6
* Fixed package.

## 3.3.5
* Backport funding information.

## 3.3.4
* Fixed `--help` in CLI (by @Lete114).

## 3.3.3
* Reduced size (by Anton Khlynovskiy).

## 3.3.2
* Fixed `enhanced-resolve` support.

## 3.3.1
* Reduced package size.

## 3.3
* Added `size` argument to function from `customAlphabet` (by Stefan Sundin).

## 3.2
* Added `--size` and `--alphabet` arguments to binary (by Vitaly Baev).

## 3.1.32
* Reduced `async` exports size (by Artyom Arutyunyan).
* Moved from Jest to uvu (by Vitaly Baev).

## 3.1.31
* Fixed collision vulnerability on object in `size` (by Artyom Arutyunyan).

## 3.1.30
* Reduced size for project with `brotli` compression (by Anton Khlynovskiy).

Loading