Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

immer

Create the next immutable state by mutating the current one
Collective - Host: opensource - https://opencollective.com/immer - Website: https://immerjs.github.io/immer/ - Code: https://github.com/immerjs/immer

test: improve tests with Immer class

Using global state in unit tests is usually a bad idea, which the Immer class lets us avoid.

Al...

github.com/immerjs/immer - ddc9b40d0a5707bbfcf4524cad7f22ea779e6475 authored about 6 years ago by aleclarson <[email protected]>
test: improve `enumerableOnly` function

github.com/immerjs/immer - a4a1e44b60dfadd3b060d8b423a0fe6551d4220b authored about 6 years ago by aleclarson <[email protected]>
test(ts): curried producer with rest parameters

github.com/immerjs/immer - b9170d2b2743c0d90910c0e3bedb265750c091d4 authored about 6 years ago by aleclarson <[email protected]>
fix(ts): improve Draft<T> with generics

And other small improvements.

Fixes #272

github.com/immerjs/immer - cc08cb7e9c2fd4974148a027ff1d1c86581092ac authored about 6 years ago by aleclarson <[email protected]>
chore: split build script into "yarn rollup" and "yarn typed"

This is nice for development, so you can do:
$ yarn rollup --watch
$ yarn typed --watch
..in...

github.com/immerjs/immer - 6dc5f72bd527ece8b041beeddf63a6b70e69c7ec authored about 6 years ago by aleclarson <[email protected]>
chore: put Draft<T> tests in their own file

github.com/immerjs/immer - 544122ba3ea732f3a2090192c88e68a6d335c8e7 authored about 6 years ago by aleclarson <[email protected]>
chore: improve TypeScript tests

- use the perfect `exactType` function
- clean up existing tests

Add new tests:
- producer that...

github.com/immerjs/immer - caa44dcb2e664bce1a83f727c7e5f1a3aa5369b7 authored about 6 years ago by aleclarson <[email protected]>
chore: include dist in __tests__/tsconfig.json

github.com/immerjs/immer - dc19e90d907fd49905771f429217aef3c34f4863 authored about 6 years ago by aleclarson <[email protected]>
fix(ts): improve IProduce

- infer the base type properly
- infer the return type properly
- ensure `nothing` can be distin...

github.com/immerjs/immer - 8666d32d07e9283b0abb9add5959998593b64755 authored about 6 years ago by aleclarson <[email protected]>
fix(ts): return undefined from produce

Fixes #276

github.com/immerjs/immer - d60db147173d236727f035fd31e2aac372d7bf8b authored about 6 years ago by aleclarson <[email protected]>
chore: add tsconfig.json for src/immer.d.ts

github.com/immerjs/immer - 95363485352a178c9de97ab160bd0fdfdb60a640 authored about 6 years ago by aleclarson <[email protected]>
fix(ts): produce function

Fixes #270

github.com/immerjs/immer - fa5bf5df061aa235c6cd61bb5332f0403e30ba02 authored about 6 years ago by aleclarson <[email protected]>
fix(test): faulty .flowconfig

The .js.flow tests were not working, because of a faulty config file.

github.com/immerjs/immer - e8fe4ba2b1ce42175b5a42ded99f9562cc493d76 authored about 6 years ago by aleclarson <[email protected]>
test: fix errors from strict mode

github.com/immerjs/immer - b788457d066fe48ef6d9b3e0d5b8f02bf3286e6d authored about 6 years ago by aleclarson <[email protected]>
nit: simplify "coveralls" script

github.com/immerjs/immer - a0bfaa6a2a8f36a14e9a1cfde6d02e8d06839102 authored about 6 years ago by aleclarson <[email protected]>
chore: disable javascript validation in vscode

github.com/immerjs/immer - 025841e3491e6882ff7e1f98278663977e41f625 authored about 6 years ago by aleclarson <[email protected]>
chore: run prettier on __tests__/flow/flow.js.flow

github.com/immerjs/immer - 55258a70f28a3da9a08a9648deb376fee743eeba authored about 6 years ago by aleclarson <[email protected]>
test: rename test.tsconfig.json so vscode can find it

github.com/immerjs/immer - 721c4886981644ab37bb3a780111013bc9abc194 authored about 6 years ago by aleclarson <[email protected]>
test: add "strict" flag to test.tsconfig.json

github.com/immerjs/immer - 382b32c849d540109d6faa32befb73a00360db31 authored about 6 years ago by aleclarson <[email protected]>
fix(test): use dist/immer.js in __tests__/types.ts

github.com/immerjs/immer - 603664b5c1bdb86a1e058c5aabceb132e5d09cfd authored about 6 years ago by aleclarson <[email protected]>
ci: tell cpx to be verbose

github.com/immerjs/immer - dbb2eee8e843cb069e1cdc9fb00b7138eb9343e6 authored about 6 years ago by aleclarson <[email protected]>
fix: revert .d.ts and .js.flow module names

github.com/immerjs/immer - 44cf8432e5e51b5d3dd30ffc8329c87c247ab433 authored about 6 years ago by aleclarson <[email protected]>
perf(proxy): avoid `has` where possible

github.com/immerjs/immer - 4b9b6375d8deb855eaed44a48daa808c753a93a8 authored about 6 years ago by aleclarson <[email protected]>
chore: add "Release notes" link to readme

github.com/immerjs/immer - 1803dd817c1cc3129438a98ccc350a54cf194e7e authored about 6 years ago by aleclarson <[email protected]>
chore: run prettier on readme

github.com/immerjs/immer - a7a8cfab2e5b0ab0466cca51a003abb18bd68b01 authored about 6 years ago by aleclarson <[email protected]>
feat: drop [email protected] support

Mapped tuples/arrays were causing a ton of head ache, so 3.1.1 is now the minimum supported vers...

github.com/immerjs/immer - 66e51e1ffd98c12baf1939bd5f6c7ae1c0183e76 authored about 6 years ago by aleclarson <[email protected]>
feat: add hooks to the `Immer` class

Hooks are passed as options to the Immer class.

onAssign(state, prop, value)
Called for every...

github.com/immerjs/immer - 7f50364a8b4d71018f4471e1873676e9e4b2b941 authored about 6 years ago by aleclarson <[email protected]>
test: hooks (onAssign, onDelete, onCopy)

github.com/immerjs/immer - ab0574465dd8f6657ca9719760ed304a898b7768 authored about 6 years ago by aleclarson <[email protected]>
feat: add types for `Immer` class

github.com/immerjs/immer - f36d329dbea2e1408962d003c1fcc6428e9c20d9 authored about 6 years ago by aleclarson <[email protected]>
chore: update import paths in tests

github.com/immerjs/immer - cdc09b1a9d0d2c46d491ce047e68e674ae1ebce2 authored about 6 years ago by aleclarson <[email protected]>
feat: add `Immer` class

Every instance of the `Immer` class provides a bound `produce` function. As explained in #254, t...

github.com/immerjs/immer - ecd04dc7fc4549cf9466ef7bd6b05bf4e502056c authored about 6 years ago by aleclarson <[email protected]>
feat: drop typescript@2 support

To avoid the annoyance of supporting 2 major language versions.

github.com/immerjs/immer - 04e3cdf24cfca947459bd127b0a21b4046772168 authored about 6 years ago by aleclarson <[email protected]>
fix(ts): improve IProduce

Fixes #205

github.com/immerjs/immer - 8a86e7c32a38766ee7067958afba78a9a14ab2d1 authored about 6 years ago by Alec Larson <[email protected]>
test(ts): improve test accuracy

github.com/immerjs/immer - b46f696c3c46bafb0c46311002df585bcad9d414 authored about 6 years ago by aleclarson <[email protected]>
test(ts): nested objects & interfaces

github.com/immerjs/immer - a682eafb0776dd19eeef82c191e6d3aae5a198af authored about 6 years ago by aleclarson <[email protected]>
test: deleting props added in the producer

github.com/immerjs/immer - 691e73b0cf15c5c4513d937c9cac63b2be8c65e7 authored about 6 years ago by aleclarson <[email protected]>
perf(proxy): deletion of an undeclared property

github.com/immerjs/immer - c0ce2523f0bfd7325c8dda3eb2c1acd9a4c0599c authored about 6 years ago by aleclarson <[email protected]>
ci: abort when "yarn build" fails

github.com/immerjs/immer - 90f75e23712c5cf98aafc3f8ee3c8fe872360aab authored about 6 years ago by aleclarson <[email protected]>
test: stop using ts-jest

The tests written in Typescript only need to be type-checked, not actually executed.

github.com/immerjs/immer - d02a797c9e9d59b81cfccc1d3b530ee209c3c391 authored about 6 years ago by aleclarson <[email protected]>
ci: collect coverage on node 10 only

github.com/immerjs/immer - 8a1c84c391bb725358bc390bbdf79e2a0659b3e2 authored about 6 years ago by aleclarson <[email protected]>
ci: test types on node 10 only

github.com/immerjs/immer - 674ae233165d6cd4fe8ea62db700a9dc3135041a authored about 6 years ago by aleclarson <[email protected]>
ci: test the minimum and latest versions of typescript

github.com/immerjs/immer - 9bf4dfbaa160f124f134149b9be9d075e78790ff authored about 6 years ago by aleclarson <[email protected]>
ci: skip deploy on non-master

The "semantic-release" tool already aborts when the branch is not "master", but this commit shou...

github.com/immerjs/immer - 1a84e4b3556fb03a7fe87414e0890a10efe985f7 authored about 6 years ago by aleclarson <[email protected]>
ci: ensure every node version passes before releasing

github.com/immerjs/immer - bb8e08734ca31361d41df5f2f19e59d8a294f92d authored about 6 years ago by aleclarson <[email protected]>
nit: change "yarn run build" to "yarn build"

github.com/immerjs/immer - 9345f1336145e4df84149ee55ea8dde267156e90 authored about 6 years ago by aleclarson <[email protected]>
fix(ci): build before release

github.com/immerjs/immer - 2f2eb9f9dc89b98596ffbccbf6547eca3d5b61ee authored about 6 years ago by aleclarson <[email protected]>
chore: remove husky pre-publish hook

github.com/immerjs/immer - e0d26ba3d88d8049222bc8da12d57e05784e2c39 authored about 6 years ago by aleclarson <[email protected]>
chore: remove unused scripts

github.com/immerjs/immer - e520350ab62b5e3aefa6e659b9d38e5a707988ab authored about 6 years ago by aleclarson <[email protected]>
chore: remove changelog

All future changes are documented in the Releases tab on Github.

github.com/immerjs/immer - 7386c4b4251d0b7bbab78147b3dba593290d5b41 authored about 6 years ago by aleclarson <[email protected]>
chore: remove "np" dev dependency

github.com/immerjs/immer - a7b9e3b1b3825bef15153325400a222c21a8b052 authored about 6 years ago by aleclarson <[email protected]>
fix(ci): install semantic-release on ci only

The "semantic-release" package crashes when used on Node <8.3. To work around this, we can insta...

github.com/immerjs/immer - 4a64599379f9303a20cba484d0e54a55ec2542c7 authored about 6 years ago by aleclarson <[email protected]>
chore: add semantic-release

github.com/immerjs/immer - 1b9b84dd4caa5054a1436509ace494e722d64606 authored about 6 years ago by aleclarson <[email protected]>
chore: use pretty-quick

The `pretty-quick` package is 33x smaller than `lint-staged` while being focused on Prettier onl...

github.com/immerjs/immer - db7d1757b70a3e106ec78c54ad15e12078ed5c54 authored about 6 years ago by aleclarson <[email protected]>
fix(tests): base state type

github.com/immerjs/immer - d157d7a7d32c54ae0af27cb2a3c96e1e596cf537 authored about 6 years ago by aleclarson <[email protected]>
perf: proxy assign

github.com/immerjs/immer - 53e9ce89efccc60544fcbf42e780260776a76fd6 authored about 6 years ago by aleclarson <[email protected]>
perf: es5 markChangesRecursively

This patch only applies to `produce` calls that have a patch listener.

- Removed the `diffKeys`...

github.com/immerjs/immer - 4dd60708ac0113fe7b7f7ec9aae9d731ff75fd88 authored about 6 years ago by aleclarson <[email protected]>
fix: always use `assign` polyfill

github.com/immerjs/immer - 241a6483ab1def5c0364c0fc6f43ba648b3eb39a authored about 6 years ago by aleclarson <[email protected]>
update yarn.lock

Use registry.npmjs.org because registry.yarnpkg.com was giving me 401 responses.

github.com/immerjs/immer - bd28ceb456e0c67b9a755f8c7a06b135d257e234 authored about 6 years ago by aleclarson <[email protected]>
test: draft nested in new object

github.com/immerjs/immer - f46659b48822541fc27382fe3dedad7fa3c2edfd authored about 6 years ago by aleclarson <[email protected]>
nit: simplify hasObjectChanges loop

github.com/immerjs/immer - 3c7f374670bafcb4ed1a65b6c863633c6301d199 authored about 6 years ago by aleclarson <[email protected]>
nit: dedupe some code

github.com/immerjs/immer - c9e1d98a1da2f27cfb86483bb97c923a094c62e3 authored about 6 years ago by aleclarson <[email protected]>
test: renaming properties

Improved tests for renaming properties.

github.com/immerjs/immer - d83f4b5c138ff3edb692507adb9d628d9aa30cf8 authored about 6 years ago by aleclarson <[email protected]>
v1.8.0

github.com/immerjs/immer - 00c622f90c97e5d47d6e38012f2a47533ede30f1 authored about 6 years ago by Michel Weststrate <[email protected]>
Merge remote-tracking branch 'origin/v1.8'

github.com/immerjs/immer - 77904176ea62eb0680399e2c0cfa2f3da7730e8c authored about 6 years ago by Michel Weststrate <[email protected]>
Merge pull request #250 from aleclarson/patch2

fix(tests): nested produce calls

github.com/immerjs/immer - 8e7b371edd19afde0f2012d493873fed09a18ac9 authored about 6 years ago by Michel Weststrate <[email protected]>
Merge pull request #249 from aleclarson/patch1

simplify es5 object key diffing

github.com/immerjs/immer - 5360e6c4b12565d087336de10f88975f91e7bf99 authored about 6 years ago by Michel Weststrate <[email protected]>
Merge pull request #236 from mweststrate/issue-233

fix(produce): avoid throwing on unproxyable objects

github.com/immerjs/immer - f12a7a8dac62eba0b7ec37782a801cb42eb95b83 authored about 6 years ago by Michel Weststrate <[email protected]>
fix(tests): nested produce calls

github.com/immerjs/immer - d6acff17f211f48618aa09eb84e17c57e05626ab authored about 6 years ago by aleclarson <[email protected]>
add tests for all possible base state types

github.com/immerjs/immer - dbfaa02d000d388904245d6c697829c9165f932e authored about 6 years ago by aleclarson <[email protected]>
fix(produce): avoid throwing on unproxyable objects

github.com/immerjs/immer - ea81dfe48b17171ed3ed7d58c47b29ef11253da2 authored about 6 years ago by aleclarson <[email protected]>
simplify es5 object key diffing

github.com/immerjs/immer - 5792b837e8bdcbbe42c9a2a896be3330e84a7d56 authored about 6 years ago by aleclarson <[email protected]>
fix(produce): never curry when 2nd argument is a function

github.com/immerjs/immer - 9a0f7d19ee8901933fb8f981ec027086116f913a authored about 6 years ago by aleclarson <[email protected]>
add tests for function as base state

github.com/immerjs/immer - 4613b0685e7dcadf1aa1bde04cb1ac3f4e724cb4 authored about 6 years ago by aleclarson <[email protected]>
fix: never auto-freeze new objects

github.com/immerjs/immer - 2f381f534c290f1c4de9e736ba674875c506ea5e authored about 6 years ago by aleclarson <[email protected]>
improve tests for freezing of return values

github.com/immerjs/immer - 41fdc55c9ba845fd8c75a062dc7113fb1f249ec5 authored about 6 years ago by aleclarson <[email protected]>
ci: test Node.js 6, 8, 10 and 11

github.com/immerjs/immer - dec6feadd264f87b4b62356fa186f53bbce939d6 authored about 6 years ago by Daniel Ruf <[email protected]>
ci: use yarn cache

github.com/immerjs/immer - 76b12cfc24c776741a84f4ffbcac629310a2400c authored about 6 years ago by Daniel Ruf <[email protected]>
Merge pull request #237 from mweststrate/curry

simplify curried producer impl

github.com/immerjs/immer - 7d2f3086f7fcf720125cce55d0f5a6b01da95acd authored about 6 years ago by Michel Weststrate <[email protected]>
simplify curried producer impl

github.com/immerjs/immer - feb37a1ccfc8c0918c623e64b6709a28f4aa4ec3 authored about 6 years ago by aleclarson <[email protected]>
reformat changelog.md

and add missing release dates

github.com/immerjs/immer - 004bb7f4471f3dae3c93ba5f06608de3be06e4e3 authored about 6 years ago by aleclarson <[email protected]>
1.7.4

github.com/immerjs/immer - a1aa3d97f958cfa54d4265266b7baf7d9bcded4c authored about 6 years ago by aleclarson <[email protected]>
update changelog.md

github.com/immerjs/immer - eed23e1e93ba2657661cec1e0a5a1aaeedcadc49 authored about 6 years ago by aleclarson <[email protected]>
fix: prettier indentation for .prettierrc and .json

github.com/immerjs/immer - 72850a904b60985c8e36dabfbe6792668cef31b2 authored about 6 years ago by aleclarson <[email protected]>
improve applyPatches perf

github.com/immerjs/immer - fe82ed97fdcef137b88a052d99d0bd137521534b authored about 6 years ago by aleclarson <[email protected]>
feat: export `isDraft` function (#220)

github.com/immerjs/immer - 172d76a89bd377232250c95b951ce9d2cdbea988 authored about 6 years ago by Alec Larson <[email protected]>
update yarn.lock

github.com/immerjs/immer - 2dcede1e36a4c42259e580bcc9893486da80834f authored about 6 years ago by aleclarson <[email protected]>
fix(ts): use es2015 env in tests

github.com/immerjs/immer - 8d84945d7b9a85b6aa88a96f7dfb6071751c6212 authored about 6 years ago by aleclarson <[email protected]>
lock down the "typescript" dev dependency

Always test 2.8.1 (the minimum supported version)

github.com/immerjs/immer - c8e92379468a8006e0cf8156c291a328848f7474 authored about 6 years ago by aleclarson <[email protected]>
test: applyPatches coverage

github.com/immerjs/immer - ec684a510804f5c2e84925e4aa332274a83b1f32 authored about 6 years ago by aleclarson <[email protected]>
fix: remove unused `verifyReturnValue` function

github.com/immerjs/immer - 42e426ea86b9a8beedfdfaebbb090ac693a2d80b authored about 6 years ago by aleclarson <[email protected]>
fix(ts): avoid mapping more built-in types

Promise, Map, WeakMap, Set, & WeakSet instances are never mapped by TypeScript

github.com/immerjs/immer - 51f6184b20d293d5e5f27533df54f69a8bfb01b4 authored about 6 years ago by aleclarson <[email protected]>
improve tests for Draft<T>

github.com/immerjs/immer - 1941e800141079086b90fee9754095a64de377e7 authored about 6 years ago by aleclarson <[email protected]>
add Draft<T> type tests

github.com/immerjs/immer - 393dad5dcb7b5e7de5f1e551be6e8719768b6ee0 authored about 6 years ago by aleclarson <[email protected]>
support typescript 2.8+

github.com/immerjs/immer - ee9e089aa6d0cf920879dce68ffd2979a2559a5e authored about 6 years ago by aleclarson <[email protected]>
improve Draft<T> in TypeScript

- make Draft<T> work in TS 2.8.x
- make Draft<T> do nothing for tuples, dates, RegExp objects, f...

github.com/immerjs/immer - 512256bbde4ea1e2b6a75399d6ad59925752ad6b authored about 6 years ago by Alec Larson <[email protected]>
fix(ts): Draft<T> where T is a tuple that contains one or many readonly objects/arrays

github.com/immerjs/immer - 6d9b8d946f444d94f5be635d60a080081a7569d6 authored about 6 years ago by aleclarson <[email protected]>
test: applyPatches invalid operation

github.com/immerjs/immer - d671c22f257782919c8b2a8d71e4d5fa5c365df4 authored about 6 years ago by aleclarson <[email protected]>
fix(jest): set "testURL" to http://localhost

This fixes a localStorage bug with jsdom

github.com/immerjs/immer - d8f02b56d66e5630e088a9131d36743898c93d01 authored about 6 years ago by aleclarson <[email protected]>
1.7.3

github.com/immerjs/immer - 18a25b81fa70dcc9db5492ed24a4f7e6ae0e2660 authored about 6 years ago by aleclarson <[email protected]>
update changelog.md

github.com/immerjs/immer - 70de0bfbf71edfc44ad63d0d904cb586abca1982 authored about 6 years ago by aleclarson <[email protected]>