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.25
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.1
Choose a head ref

Commits on Sep 10, 2021

  1. Add chinese doc (#296)

    * docs: add chinese docs
    
    * docs: add chinese docs
    
    * docs: update docs format
    
    Co-authored-by: wenqiang <wenqiang@didiglobal.com>
    Qiang and wenqiang authored Sep 10, 2021
    Copy the full SHA
    4a4d1da View commit details
  2. Copy the full SHA
    7bbd7a5 View commit details
  3. Update dependencies

    ai committed Sep 10, 2021
    Copy the full SHA
    71dace5 View commit details
  4. Copy the full SHA
    e6c0f61 View commit details
  5. Try to mark current language

    ai committed Sep 10, 2021
    Copy the full SHA
    5ec1fb0 View commit details

Commits on Sep 12, 2021

  1. Fix Chinese docs TOC links

    ai committed Sep 12, 2021
    Copy the full SHA
    10f8091 View commit details
  2. Add Russian translation

    ai committed Sep 12, 2021
    Copy the full SHA
    57884ee View commit details
  3. Update dependencies

    ai committed Sep 12, 2021
    Copy the full SHA
    9a37a81 View commit details
  4. Typo

    ai committed Sep 12, 2021
    Copy the full SHA
    6220e6e View commit details
  5. Change symbols

    ai committed Sep 12, 2021
    Copy the full SHA
    5578ee0 View commit details

Commits on Sep 13, 2021

  1. Fix some word and navigation failures (#297)

    * docs: add chinese docs
    
    * docs: add chinese docs
    
    * docs: update docs format
    
    * Update layout style
    
    * Fix some word and navigation failures
    
    Co-authored-by: wenqiang <wenqiang@didiglobal.com>
    Qiang and wenqiang authored Sep 13, 2021
    Copy the full SHA
    c46937e View commit details

Commits on Sep 14, 2021

  1. Copy the full SHA
    0b244bb View commit details
  2. Update README.ru.md (#298)

    * Update README.ru.md
    
    * Update README.ru.md
    
    Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>
    gwer and ai authored Sep 14, 2021
    Copy the full SHA
    439f95f View commit details
  3. Typo

    ai committed Sep 14, 2021
    6
    Copy the full SHA
    3c4202a View commit details
  4. Update dependencies

    ai committed Sep 14, 2021
    Copy the full SHA
    85d1574 View commit details
  5. Fix URL

    ai authored Sep 14, 2021
    Copy the full SHA
    849e04a View commit details

Commits on Sep 15, 2021

  1. Big update README.ru.md (#300)

    * Big update README.ru.md
    
    * Fixes after review
    
    * Remove yarn
    
    * Fix ToC, remove cryptography
    
    * устойчивость к подбору ID
    
    * Строки не длиннее 80 символов
    gwer authored Sep 15, 2021
    Copy the full SHA
    72eeaa6 View commit details
  2. Change section order

    ai committed Sep 15, 2021
    1
    Copy the full SHA
    b655154 View commit details

Commits on Sep 16, 2021

  1. Move Tools below

    ai committed Sep 16, 2021
    Copy the full SHA
    9ff2290 View commit details
  2. Add code format

    ai committed Sep 16, 2021
    Copy the full SHA
    289b5b2 View commit details
  3. 2
    Copy the full SHA
    292fe82 View commit details
  4. Add chinese doc (#301)

    * docs: add chinese docs
    
    * docs: add chinese docs
    
    * docs: update docs format
    
    * Update layout style
    
    * Fix some word and navigation failures
    
    * Update chinese doc
    
    * Update chinese doc
    
    * Update chinese doc
    
    * Update chinese doc
    
    Co-authored-by: wenqiang <wenqiang@didiglobal.com>
    Qiang and wenqiang authored Sep 16, 2021
    Copy the full SHA
    f23f7bf View commit details

Commits on Sep 21, 2021

  1. Bump nth-check from 2.0.0 to 2.0.1 (#302)

    Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
    - [Release notes](https://github.com/fb55/nth-check/releases)
    - [Commits](fb55/nth-check@v2.0.0...v2.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: nth-check
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 21, 2021
    1
    Copy the full SHA
    6fbda5a View commit details
  2. Replace colorette with nanocolors

    ai committed Sep 21, 2021
    1
    Copy the full SHA
    70deb10 View commit details
  3. Update dependencies

    ai committed Sep 21, 2021
    1
    Copy the full SHA
    fbc100b View commit details

Commits on Sep 26, 2021

  1. 1
    Copy the full SHA
    eafb6b3 View commit details
  2. Normalize names

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    1c4fe7e View commit details
  3. Update dependencies

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    7493375 View commit details
  4. Update benchmark results

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    1db1435 View commit details
  5. Update dependencies

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    50fa9b4 View commit details
  6. Update dual-publish

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    43d31a4 View commit details
  7. Release 3.1.26 version

    ai committed Sep 26, 2021
    1
    Copy the full SHA
    4b2d97e View commit details
  8. Fix devDependnecies

    ai committed Sep 26, 2021
    Copy the full SHA
    4510bc1 View commit details
  9. Release 3.1.27 version

    ai committed Sep 26, 2021
    Copy the full SHA
    6c668be View commit details
  10. Fix README translation cleaning

    ai committed Sep 26, 2021
    Copy the full SHA
    3c22f99 View commit details
  11. Release 3.1.28 version

    ai committed Sep 26, 2021
    Copy the full SHA
    61b6fe8 View commit details

Commits on Sep 29, 2021

  1. add crypto.randomUUID() to benchmarks (#305)

    * add crypto.randomUUID() to benchmarks
    
    * set disableEntropyCache by true
    Eugeno authored Sep 29, 2021
    Copy the full SHA
    7c7ca20 View commit details
  2. Update dependencies

    ai committed Sep 29, 2021
    Copy the full SHA
    fe10156 View commit details
  3. Copy the full SHA
    b0d7bfa View commit details

Commits on Oct 5, 2021

  1. Copy the full SHA
    c66da35 View commit details
  2. Copy the full SHA
    17ef239 View commit details
  3. Better way to use GitHub Actions

    ai committed Oct 5, 2021
    Copy the full SHA
    8df5be5 View commit details
  4. Fix CI

    ai committed Oct 5, 2021
    Copy the full SHA
    8e31b35 View commit details
  5. Add benchmark to CI

    ai committed Oct 5, 2021
    Copy the full SHA
    ac7ba2e View commit details
  6. Clean up benchmark code

    ai committed Oct 5, 2021
    Copy the full SHA
    140d2df View commit details
  7. Fix tool name in benchmark

    ai committed Oct 5, 2021
    Copy the full SHA
    c332c1d View commit details
  8. Add uid and update benchmark

    ai committed Oct 5, 2021
    5
    Copy the full SHA
    769d281 View commit details
  9. Clean comments in npm package

    ai committed Oct 5, 2021
    Copy the full SHA
    14b0889 View commit details
  10. Release 3.1.29 version

    ai committed Oct 5, 2021
    Copy the full SHA
    5870ed0 View commit details
  11. Copy the full SHA
    464bc82 View commit details
73 changes: 63 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,96 @@
name: Test
on:
push:
branches:
- main
pull_request:
env:
FORCE_COLOR: 2
jobs:
full:
name: Node.js 16 Full
name: Node.js 17 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 17
cache: pnpm
- name: Install dependencies
uses: bahmutov/npm-install@v1
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
uses: bahmutov/npm-install@v1
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
old:
runs-on: ubuntu-latest
name: Node.js 10 Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
install-command: yarn install --ignore-engines
version: 3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js 10
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: npx jest
run: pnpm unit
env:
FORCE_COLOR: 2
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run benchmark
run: node ./test/benchmark.js
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
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 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).

## 3.1.29
* Reduced npm package size.

## 3.1.28
* Reduced npm package size.

## 3.1.27
* Cleaned `dependencies` from development tools.

## 3.1.26
* Improved performance (by Eitan Har-Shoshanim).
* Reduced npm package size.

## 3.1.25
* Fixed `browserify` support.

Loading