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: dubzzz/pure-rand
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.5
Choose a base ref
...
head repository: dubzzz/pure-rand
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.0
Choose a head ref

Commits on Nov 23, 2022

  1. ⬆️ Bump prettier from 2.7.1 to 2.8.0 (#469)

    Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.0.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@2.7.1...2.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 23, 2022
    Copy the full SHA
    3d56aae View commit details
  2. Configure Renovate (#470)

    * Add renovate.json
    
    * Update renovate.json
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Nicolas DUBIEN <github@dubien.org>
    renovate[bot] and dubzzz authored Nov 23, 2022
    Copy the full SHA
    c6712d3 View commit details
  3. ⬆️ Update dependency @types/node to ^18.11.9 (#471)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    f575ed9 View commit details
  4. ⬆️ Update dependency fast-check to ^3.3.0 (#472)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    58c4573 View commit details
  5. Copy the full SHA
    cbefd3e View commit details
  6. ⬆️ Update actions/upload-artifact action to v3 (#483)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    a5a0901 View commit details
  7. ⬆️ Update actions/download-artifact action to v3 (#482)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    a970960 View commit details
  8. ⬆️ Update actions/checkout action to v3 (#481)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    6d78a6f View commit details
  9. ⬆️ Update dependency typescript to ^4.9.3 (#479)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    bb5853c View commit details
  10. ⬆️ Update dependency replace-in-file to ^6.3.5 (#475)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    54ae68c View commit details
  11. Copy the full SHA
    6a23e48 View commit details
  12. ⬆️ Update dependency ts-node to ^10.9.1 (#478)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    ac1f5d0 View commit details
  13. ⬆️ Update codecov/codecov-action action to v3 (#484)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    95c6d84 View commit details
  14. ⬆️ Update dependency source-map-support to ^0.5.21 (#476)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    6e2139a View commit details
  15. ⬆️ Update dependency ts-jest to ^26.5.6 (#477)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    85ad34f View commit details
  16. ⬆️ Update jest monorepo (#480)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 23, 2022
    Copy the full SHA
    bfff606 View commit details

Commits on Dec 1, 2022

  1. ⬆️ Update dependency @types/node to ^18.11.10 (#487)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 1, 2022
    Copy the full SHA
    dd2c161 View commit details

Commits on Dec 6, 2022

  1. ⬆️ Update dependency @types/node to ^18.11.11 (#488)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 6, 2022
    Copy the full SHA
    fccc7b4 View commit details

Commits on Dec 8, 2022

  1. ⬆️ Update dependency typescript to ^4.9.4 (#490)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 8, 2022
    Copy the full SHA
    6f0f0c0 View commit details
  2. ⬆️ Update dependency prettier to v2.8.1 (#489)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 8, 2022
    Copy the full SHA
    c5031ea View commit details

Commits on Dec 11, 2022

  1. Copy the full SHA
    f11d2e8 View commit details

Commits on Dec 14, 2022

  1. ⬆️ Update dependency fast-check to ^3.4.0 (#493)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 14, 2022
    Copy the full SHA
    2df5e09 View commit details
  2. ⬆️ Update dependency @types/node to ^18.11.15 (#491)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 14, 2022
    Copy the full SHA
    669c949 View commit details
  3. 👷 Drop dependabot

    dubzzz authored Dec 14, 2022
    Copy the full SHA
    122f968 View commit details

Commits on Dec 17, 2022

  1. ⬆️ Update dependency @types/node to ^18.11.16 (#497)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 17, 2022
    Copy the full SHA
    819e842 View commit details

Commits on Dec 18, 2022

  1. ⬆️ Update dependency @types/node to ^18.11.17 (#498)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 18, 2022
    Copy the full SHA
    1082b4f View commit details

Commits on Dec 25, 2022

  1. ⬆️ Update dependency fast-check to ^3.5.0 (#500)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 25, 2022
    Copy the full SHA
    a0aa496 View commit details

Commits on Dec 27, 2022

  1. ⬆️ Update Yarn to v3.3.1 (#499)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 27, 2022
    Copy the full SHA
    77d862e View commit details
  2. ⬆️ Update dependency @types/node to ^18.11.18 (#501)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 27, 2022
    Copy the full SHA
    f5b8925 View commit details

Commits on Jan 7, 2023

  1. ⬆️ Update dependency prettier to v2.8.2 (#503)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 7, 2023
    Copy the full SHA
    0becac9 View commit details

Commits on Jan 8, 2023

  1. Copy the full SHA
    dd621c9 View commit details
  2. Copy the full SHA
    2dd7280 View commit details
  3. Copy the full SHA
    bb69be5 View commit details
  4. Copy the full SHA
    c2d6ee6 View commit details
  5. ⚡️ Faster Mersenne-Twister (#510)

    Changing the range of Mersenne-Twister to have it in int32 range. It drops one unneeded computation.
    dubzzz authored Jan 8, 2023
    Copy the full SHA
    fdb6ec8 View commit details
  6. Copy the full SHA
    0bde03e View commit details
  7. ⚡️ Faster Congruencial 32bits (#512)

    * ⚡️ Faster Congruencial 32bits
    
    * Update LinearCongruential.ts
    dubzzz authored Jan 8, 2023
    Copy the full SHA
    b4852a8 View commit details

Commits on Jan 9, 2023

  1. 💥 Require generators uniform in int32 (#513)

    In the past, allowed them to customize the range of values they can produce. We now enforce a specific range for an higher throughput of the lib.
    dubzzz authored Jan 9, 2023
    Copy the full SHA
    c45912f View commit details
  2. Copy the full SHA
    520cca7 View commit details
  3. Copy the full SHA
    a7e19a8 View commit details
  4. Copy the full SHA
    464960a View commit details
  5. Copy the full SHA
    7587984 View commit details

Commits on Jan 12, 2023

  1. Copy the full SHA
    0281cfd View commit details
  2. Copy the full SHA
    36c965f View commit details
  3. Copy the full SHA
    5c1ca0e View commit details
  4. Copy the full SHA
    db4a0a6 View commit details
  5. 🔨 Add missing benchType to the script (#522)

    * 🔨 Add missing benchType to the script
    
    * Update .github/workflows/benchmark.yml
    dubzzz authored Jan 12, 2023
    Copy the full SHA
    00fc62b View commit details
  6. 6.0.0

    dubzzz committed Jan 12, 2023
    Copy the full SHA
    5ea165a View commit details
Showing with 1,162 additions and 1,157 deletions.
  1. +1 −0 .github/FUNDING.yml
  2. +0 −13 .github/dependabot.yml
  3. +36 −0 .github/workflows/benchmark.yml
  4. +12 −12 .github/workflows/build-status.yml
  5. +2 −1 .prettierignore
  6. +5 −7 .prettierrc
  7. +263 −247 .yarn/releases/{yarn-3.3.0.cjs → yarn-3.3.1.cjs}
  8. +5 −5 .yarnrc.yml
  9. +10 −6 README.md
  10. +2 −2 package.esm-template.json
  11. +14 −14 package.json
  12. +166 −36 perf/benchmark.cjs
  13. +23 −0 renovate.json
  14. +4 −4 src/distribution/UnsafeUniformBigIntDistribution.ts
  15. +8 −38 src/distribution/internals/UnsafeUniformIntDistributionInternal.ts
  16. +1 −49 src/generator/LinearCongruential.ts
  17. +1 −12 src/generator/MersenneTwister.ts
  18. +8 −6 src/generator/RandomGenerator.ts
  19. +0 −6 src/generator/XorShift.ts
  20. +0 −6 src/generator/XoroShiro.ts
  21. +1 −2 src/pure-rand-default.ts
  22. +2 −8 test/legacy/main.js
  23. +3 −6 test/unit/distribution/UniformBigIntDistribution.noreg.spec.ts
  24. +2 −5 test/unit/distribution/UniformBigIntDistribution.spec.ts
  25. +3 −6 test/unit/distribution/UniformIntDistribution.noreg.spec.ts
  26. +170 −170 test/unit/distribution/__snapshots__/UniformArrayIntDistribution.noreg.spec.ts.snap
  27. +105 −105 test/unit/distribution/__snapshots__/UniformBigIntDistribution.noreg.spec.ts.snap
  28. +105 −105 test/unit/distribution/__snapshots__/UniformIntDistribution.noreg.spec.ts.snap
  29. +2 −59 test/unit/distribution/internals/UnsafeUniformIntDistributionInternal.spec.ts
  30. +122 −38 test/unit/generator/LinearCongruencial.spec.ts
  31. +2 −2 test/unit/generator/MersenneTwister.spec.ts
  32. +2 −2 test/unit/generator/RandomGenerator.properties.ts
  33. +8 −8 tsconfig.declaration.json
  34. +20 −28 tsconfig.json
  35. +54 −149 yarn.lock
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# These are supported funding model platforms

open_collective: fast-check
github: [dubzzz]
13 changes: 0 additions & 13 deletions .github/dependabot.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Benchmark
on:
workflow_dispatch:
inputs:
benchType:
type: choice
description: 'Type (self: all generators, alone: all algorithms)'
default: 'self'
options:
- self
- alone
required: true
numIterations:
description: 'Number of iterations'
default: '1000'
required: true
numPerRun:
description: 'Number per run'
default: '100'
required: true
jobs:
benchmark:
name: 'Benchmark'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Using Node v16.x
uses: actions/setup-node@v2.1.5
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install --immutable
- name: Build benchmark package
run: yarn build:bench:new
- name: Benchmark
run: yarn bench ${{github.event.inputs.benchType}} ${{github.event.inputs.numIterations}} ${{github.event.inputs.numPerRun}}
24 changes: 12 additions & 12 deletions .github/workflows/build-status.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: Build Status

on:
push:
branches:
branches:
- main
- next-*
- fix-v*
@@ -37,7 +37,7 @@ jobs:
needs: warmup_yarn_cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Using Node v16.x
uses: actions/setup-node@v3
with:
@@ -53,9 +53,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Using Node v${{matrix.node-version}}
uses: actions/setup-node@v3
with:
@@ -68,7 +68,7 @@ jobs:
- name: Unit tests
run: yarn test
- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
name: unit-tests-${{matrix.node-version}}-${{runner.os}}
flags: unit-tests, unit-tests-${{matrix.node-version}}-${{runner.os}}
@@ -78,7 +78,7 @@ jobs:
name: 'Test package quality'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Using Node v16.x
uses: actions/setup-node@v3
with:
@@ -91,7 +91,7 @@ jobs:
needs: warmup_yarn_cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Using Node v16.x
uses: actions/setup-node@v3
with:
@@ -104,7 +104,7 @@ jobs:
- name: Create bundle
run: yarn pack
- name: Upload production package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: bundle
path: package.tgz
@@ -115,12 +115,12 @@ jobs:
needs: production_package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Using Node 0.12
shell: bash -l {0}
run: nvm install 0.12
- name: Download production package
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: bundle
- name: Untar the published package
@@ -131,7 +131,7 @@ jobs:
run: node test/legacy/main.js
publish_package:
name: 'Publish package'
needs:
needs:
- production_package
- format
- test
@@ -146,7 +146,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Download production package
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: bundle
- name: Publish package
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lib/
lib-*/
coverage/
coverage/
.yarn/
12 changes: 5 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"parser": "typescript",

"printWidth": 120,
"tabWidth": 2,
"singleQuote": true
}
{
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true
}
Loading