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: planttheidea/moize
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.0.0
Choose a base ref
...
head repository: planttheidea/moize
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.1
Choose a head ref
  • 5 commits
  • 11 files changed
  • 2 contributors

Commits on Jan 25, 2021

  1. Copy the full SHA
    df3b7af View commit details

Commits on Mar 9, 2021

  1. Bump elliptic from 6.5.3 to 6.5.4

    Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
    - [Release notes](https://github.com/indutny/elliptic/releases)
    - [Commits](indutny/elliptic@v6.5.3...v6.5.4)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 9, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e06ae77 View commit details
  2. Merge pull request #147 from planttheidea/dependabot/npm_and_yarn/ell…

    …iptic-6.5.4
    
    Bump elliptic from 6.5.3 to 6.5.4
    planttheidea authored Mar 9, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d8c37a3 View commit details

Commits on Mar 20, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    10af33f View commit details
  2. Update docs

    planttheidea committed Mar 20, 2021
    Copy the full SHA
    355e956 View commit details
Showing with 238 additions and 197 deletions.
  1. +3 −1 CHANGELOG.md
  2. +1 −3 README.md
  3. +10 −0 __tests__/default.ts
  4. +1 −1 docs/assets/js/search.json
  5. +126 −96 docs/globals.html
  6. +43 −43 docs/index.html
  7. +6 −6 docs/interfaces/maxage.html
  8. +26 −26 docs/interfaces/moize.html
  9. +1 −1 package.json
  10. +5 −4 src/instance.ts
  11. +16 −16 yarn.lock
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# moize CHANGELOG
## 6.0.1

- [#146](https://github.com/planttheidea/moize/issues/146) - Fix reading deprecated properties on function object

## 6.0.0

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

`moize` is a [consistently blazing fast](#benchmarks) memoization library for JavaScript. It handles multiple parameters (including default values) without any additional configuration, and offers a large number of options to satisfy any number of potential use-cases.

**NOTE**: This documentation is for the next major version of `moize`, please go to the [`v5` branch](https://github.com/planttheidea/moize/tree/v5) to see documentation on the current major version. To learn about changes that may impact your code when migrating to v6, please see the [changelog](CHANGELOG.md#600).

- [Importing](#importing)
- [ESM in browsers](#esm-in-browsers)
- [ESM in NodeJS](#esm-in-nodejs)
@@ -76,7 +74,7 @@
- [Development](#development)

```
$ npm i moize@next --save
$ npm i moize --save
```

# Importing
10 changes: 10 additions & 0 deletions __tests__/default.ts
Original file line number Diff line number Diff line change
@@ -96,6 +96,16 @@ describe('moize', () => {
maxSize: 5,
});
});

it('should copy static properties from the source function', () => {
const fn = (a: any, b: any) => [a, b];

fn.foo = 'bar';

const memoized = moize(fn);

expect(memoized.foo).toBe(fn.foo);
});
});

describe('cache manipulation', () => {
Loading