Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update benchmark instructions and CHANGELOG
  • Loading branch information
sarayourfriend committed Nov 12, 2020
commit 7149f36a26c65e3a3388a389a12a6178c136d681
4 changes: 4 additions & 0 deletions packages/is-shallow-equal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Re-write using ES Modules causing CJS default import to change from `require('@wordpress/is-shallow-equal)` to `require('@wordpress/is-shallow-equal).default`. ([#26833](https://github.com/WordPress/gutenberg/pull/26833))

## 2.0.0 (2020-04-15)

### Breaking Change
Expand Down
6 changes: 3 additions & 3 deletions packages/is-shallow-equal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ The following results were produced under Node v10.15.3 (LTS) on a MacBook Pro (
You can run the benchmarks yourselves by cloning the repository, installing dependencies, and running the `benchmark/index.js` script:

```
git clone https://github.com/WordPress/packages.git
cd packages/packages/is-shallow-equal
git clone https://github.com/WordPress/gutenberg.git
npm install
node benchmark
npm run build:packages
node ./packages/is-shallow-equal/benchmark
```

<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
2 changes: 1 addition & 1 deletion packages/is-shallow-equal/benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Promise.all( [
require( '..' ).isShallowEqualObjects,
require( '..' ).isShallowEqualArrays,
],
[ '@wordpress/is-shallow-equal', require( '..' ) ],
[ '@wordpress/is-shallow-equal', require( '..' ).default ],
[ 'shallowequal', shallowequal ],
[
'shallow-equal (type specific)',
Expand Down