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

docs: removed deprecation note on this, see #308

docs: add example of an `immerable` class

github.com/immerjs/immer - a5ce2ae1254b12f6a09c32b8380b792a358b5205 authored over 5 years ago by Michel Weststrate <[email protected]>
docs: stub migration guide

github.com/immerjs/immer - 3149a4d9b2ccbb5ec599708fb18aeefff5fba396 authored over 5 years ago by Michel Weststrate <[email protected]>
Update readme.md (#334)

With React Native 0.59 release - they upgraded the Android JSC so I think this polyfill is no lo...

github.com/immerjs/immer - ab7a44bbe20993003faa7f32e20ceb0a47b044c8 authored over 5 years ago by Noitidart <[email protected]>
[docs] Added OSAward to the readme

github.com/immerjs/immer - 043165388c6238a9d1627caf9a3913fcd375ad11 authored over 5 years ago by Michel Weststrate <[email protected]>
ci: avoid [email protected] for now

github.com/immerjs/immer - e592b5c5732a52ae0cdcbf900cda0bde14c540f2 authored almost 6 years ago by Alec Larson <[email protected]>
fix: remove pointless assignments

The value of `state.finalizing` is guaranteed to be true at this point.

And setting `finalizing...

github.com/immerjs/immer - 366943c385ab1aff7461d4b20e2532bd622245a8 authored almost 6 years ago by Alec Larson <[email protected]>
chore: comments and formatting

github.com/immerjs/immer - ff96173b677a0087ba870299d6e4a406033183c5 authored almost 6 years ago by Alec Larson <[email protected]>
fix: unnecessary draft creation

When a draft wraps another draft, it must be careful to never create a draft when accessing its ...

github.com/immerjs/immer - ec00ee4a9832191d3dda337410da4f359403c569 authored almost 6 years ago by Alec Larson <[email protected]>
fix(test): missing "expect" devDependency

github.com/immerjs/immer - fb124283bc6673ef7ca779b582b88bd6b1c83bb1 authored almost 6 years ago by Alec Larson <[email protected]>
test: more recursive produce tests

github.com/immerjs/immer - 8adfb3181646082a36c3c046a6aab3b5b519c940 authored almost 6 years ago by Alec Larson <[email protected]>
docs: elaborate on immerable symbol

Closes #341

github.com/immerjs/immer - 9e12f5601ad6aa02ef7a777a2e44470ff2944330 authored almost 6 years ago by Alec Larson <[email protected]>
docs: add react-state-tree

Made by @suchipi the Great

github.com/immerjs/immer - dfcd54360986716b95289f75798b90b4c105c7a3 authored almost 6 years ago by Alec Larson <[email protected]>
docs: added ForwardJS talk by swyx

github.com/immerjs/immer - 984434edb1e99f279d9d7c87a50df1964ed8d2af authored almost 6 years ago by Michel Weststrate <[email protected]>
fix(build): publish source files

The source maps used to contain the source code (via the "sourcesContent" property).

To allow f...

github.com/immerjs/immer - fb928843c2025ceb9837663e0d57ece603616833 authored almost 6 years ago by Alec Larson <[email protected]>
fix(build): use .module.js instead of .mjs for esm bundle (#332)

github.com/immerjs/immer - 8b33b9882e3c0981e04ee3cd1edd7a9d774612e7 authored almost 6 years ago by EGOIST <[email protected]>
fix(ts): --target=es5 compatibility

I noticed that "@types/lodash" uses this declaration for ES5 compatibility.

Fixes #321

github.com/immerjs/immer - 0e5ecc9f630a60108926fd172358c65777705b11 authored almost 6 years ago by Alec Larson <[email protected]>
test: delete then set an existing property

github.com/immerjs/immer - 5121d36522bd085c65c715c7b49edc9718067798 authored almost 6 years ago by Alec Larson <[email protected]>
fix(es5): delete then set an existing property

Fixes #328

github.com/immerjs/immer - 696342030e13d973a61ad56a431299b3e20de5aa authored almost 6 years ago by Alec Larson <[email protected]>
chore: upgrade to jest@24 and babel@7

github.com/immerjs/immer - 37f57f0545ee5436ad84669d2e06b4939c5135f3 authored almost 6 years ago by Alec Larson <[email protected]>
chore: replace rollup with bili (#306)

* replace rollup with bili

* upgrade bili for node 6 support

* update lockfile

* upgrad...

github.com/immerjs/immer - b9f0029bf77a7ab993133551a635680b559c7532 authored almost 6 years ago by EGOIST <[email protected]>
chore: rewrite issue templates

github.com/immerjs/immer - c071fe0b70f7fd9950e6f7ed0a4cfe8ab749a4bc authored almost 6 years ago by Alec Larson <[email protected]>
test: use Jest snapshots for expected errors

github.com/immerjs/immer - 0ad9a91e189685b24714686bd6a42699ce02feae authored almost 6 years ago by Alec Larson <[email protected]>
nit: improved error messages

github.com/immerjs/immer - a951f407a1b50eebc13acd1b0104e3415218e680 authored almost 6 years ago by Alec Larson <[email protected]>
fix: share internal symbols between immer installations

The `nothing` symbol is still not portable across installations, since it never escapes any prod...

github.com/immerjs/immer - 02fed2ca6de18cc8e8728a4f887fe00c09a3b22b authored almost 6 years ago by Alec Larson <[email protected]>
refactor: clean up #320

github.com/immerjs/immer - fad74d39bae3e55bc54bc39e3107484b86db06ee authored almost 6 years ago by Alec Larson <[email protected]>
feat: improved array patches

github.com/immerjs/immer - cb5707f514aa8cd7029f1a614e5fac487da87b9a authored almost 6 years ago by Ilyas Kabirov <[email protected]>
docs: add redux-ts-utils to "cool things made with immer"

github.com/immerjs/immer - 0b6960a51140bb6ca04a43dd71ffad86eab07c53 authored almost 6 years ago by Kenneth Powers <[email protected]>
docs: fixed error in docs

github.com/immerjs/immer - 42b14bd4e2f343a947697a9dfdf210970be112f3 authored almost 6 years ago by Michel Weststrate <[email protected]>
Merge branch 'async-recipes'

github.com/immerjs/immer - ff210d8f9cf3cd75c99fd6cff9efd24d371e6c28 authored almost 6 years ago by Michel Weststrate <[email protected]>
BREAKING CHANGE: added migration guide

github.com/immerjs/immer - b79bb97cdea79f8c61f40994a950c445e9bcf185 authored almost 6 years ago by Michel Weststrate <[email protected]>
docs: fixes

github.com/immerjs/immer - 9c498e12975e76098ef8180ea9c660c7cb3654d1 authored almost 6 years ago by Michel Weststrate <[email protected]>
docs: async and createDraft / finishDraft

github.com/immerjs/immer - 3b8b39f9b2dfa4fda97b408e3abb36794db2926b authored almost 6 years ago by Michel Weststrate <[email protected]>
docs: reordered readme a bit to a more logical order

github.com/immerjs/immer - 54791965c58684d7fafd7fe80fbc9c1cb5a564b4 authored almost 6 years ago by Michel Weststrate <[email protected]>
chores: added additional invariants

github.com/immerjs/immer - b0d3ce3f2726913ac841c4ff34405930d3233707 authored almost 6 years ago by Michel Weststrate <[email protected]>
types: async produce

github.com/immerjs/immer - c6cd6327525886e38f4f34e716555f295a864f0e authored almost 6 years ago by aleclarson <[email protected]>
fix(es5): throw if a modified child draft is returned

To be more consistent with the native Proxy implementation.

github.com/immerjs/immer - eabe9db412d9aa56f7f9ef1325eb6c4a97d5a31c authored almost 6 years ago by aleclarson <[email protected]>
test: use snapshots in createDraft tests

github.com/immerjs/immer - 13b0ed0b202f169a7e860fff40b972ee0414a600 authored almost 6 years ago by aleclarson <[email protected]>
refactor: rename createPublicDraft/finishPublicDraft for consistency

github.com/immerjs/immer - 44ef0c8cad9f6c5b545cd8fbcd6ebdb26cc2b8eb authored almost 6 years ago by aleclarson <[email protected]>
types: createDraft/finishDraft functions

github.com/immerjs/immer - edda437349a83b0846642cb3061a9ef8cd331559 authored almost 6 years ago by Michel Weststrate <[email protected]>
feat: createDraft/finishDraft functions

Closes #302

github.com/immerjs/immer - e2eb0a8e84280b5467e895075baab4126822f551 authored almost 6 years ago by Michel Weststrate <[email protected]>
test: avoid async/await for node 6

github.com/immerjs/immer - e9f274e53adc2775b91c736b6fb1bacc09005078 authored almost 6 years ago by aleclarson <[email protected]>
Some additional comments, improvement in error handling

github.com/immerjs/immer - ed6dfcc8802a7dc1f9ee68bf96a74253ca7b8a81 authored almost 6 years ago by Michel Weststrate <[email protected]>
feat: support async recipes

Drafts won't be revoked until the returned promise is fulfilled or rejected.

github.com/immerjs/immer - 5fee518c0c0fe9f82af3ae73c436f7230e1f3a1e authored almost 6 years ago by aleclarson <[email protected]>
fix: recursive produce call in async recipe

github.com/immerjs/immer - 327d65971ec712d6071a0e796f317c0ac46b2f7a authored almost 6 years ago by aleclarson <[email protected]>
test: recursive produce call in async recipe

github.com/immerjs/immer - e266f4bf775797874ed8a41b9976ea12253b373d authored almost 6 years ago by aleclarson <[email protected]>
test: hooks in es5

github.com/immerjs/immer - 271cd1b0e8b373ae354b809ee0207839d49ee99d authored almost 6 years ago by aleclarson <[email protected]>
fix: applyPatches should mutate drafts

This mimics the behavior of applyPatches before v1.11.0

Fixes #301

github.com/immerjs/immer - d41be775b4e8b995c74cb82276f9bd9be72072ae authored almost 6 years ago by aleclarson <[email protected]>
feat: export isDraftable

For use by Immer-based libraries

github.com/immerjs/immer - c89d47d0041a8920a7a816a48b950841e41fcf6a authored almost 6 years ago by aleclarson <[email protected]>
fix: use getOwnPropertySymbols only when it exists

The getOwnPropertySymbols function was added much later than the getOwnPropertyNames function.

github.com/immerjs/immer - d57433b5ec5724f8e52acf83b4afffa6adb9dc1b authored almost 6 years ago by aleclarson <[email protected]>
docs: mention the "immerable" symbol

github.com/immerjs/immer - f72f69b480860d5433c6db5eef08e893bb4b8835 authored almost 6 years ago by aleclarson <[email protected]>
fix: Object.getPrototypeOf with a draft

github.com/immerjs/immer - d5d07e876c89a842825b92054bbf35de741dad17 authored almost 6 years ago by aleclarson <[email protected]>
test: improve "nested producer" tests

github.com/immerjs/immer - f9cd73685fc35b22191e868dc8c1fedd5edb0b2a authored almost 6 years ago by aleclarson <[email protected]>
test: rewrite "revoked proxy" tests

github.com/immerjs/immer - b4964add99172508e8cdc0fb3d03c61e869990a0 authored almost 6 years ago by aleclarson <[email protected]>
test: improve "property descriptor" tests

github.com/immerjs/immer - a84eea58effa89a0c0103ec09265e0e336f28c79 authored almost 6 years ago by aleclarson <[email protected]>
fix(es5): account for drafts in prepareCopy

The `prepareCopy` function was not taking into account that the base state might be a draft.

github.com/immerjs/immer - 1e3e4252e41a8c1534454feddf5c381b25f2f134 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): improve "nothing" test

github.com/immerjs/immer - f7e0d35a4d1a8fa5c3ac015e2d16288de7b27947 authored almost 6 years ago by aleclarson <[email protected]>
nit: remove old `each` and rename `eachOwn`

github.com/immerjs/immer - c0ea419d02bdf9694030af75d734e95a90bd9816 authored almost 6 years ago by aleclarson <[email protected]>
fix(es5): onDelete hook

The `assigned` map cannot be trusted in es5, because of perf optimizations when a patch listener...

github.com/immerjs/immer - 46cc6a1511fa707f55f183f840524a969f198310 authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): Immer class options and ImmerState types

Minor improvements

github.com/immerjs/immer - 5ff645c56d85b04b08b463611a2c3bac169fb59e authored almost 6 years ago by aleclarson <[email protected]>
fix: throw on circular references

The most basic case; when an object references itself directly.

github.com/immerjs/immer - 9c6603e97d54d49eb4bacaa8f51ff446b2ba6d0d authored almost 6 years ago by aleclarson <[email protected]>
fix: draft as base state

Forgot to remove an early `isDraft` check. 😂

github.com/immerjs/immer - 9a2e756320f9f37e73a00fcf7aa7b3cf070d7c80 authored almost 6 years ago by aleclarson <[email protected]>
fix: property descriptor edge cases

Using the `drafts` object as a source of property descriptors is bad,
because enumerability is n...

github.com/immerjs/immer - afaa73717aa78da43f5a1708b521c14dd23bd19e authored almost 6 years ago by aleclarson <[email protected]>
chore: improve more tests

- Removed a bunch of obsolete tests
- Refactored a ton of code
- Added some missing edge cases

github.com/immerjs/immer - 4f59b127f109966e73b283e9e55ea4f433391acc authored almost 6 years ago by aleclarson <[email protected]>
chore: improve some tests

- cover a missing edge case
- removed an extraneous test
- improved test names
- array-specific ...

github.com/immerjs/immer - efd47f6eeb131bf0528ea5ee20837f8fad1949ce authored almost 6 years ago by aleclarson <[email protected]>
test: extract some tests into their own function

github.com/immerjs/immer - 21846ab357cdc041ee221ba87ec542b90eddc13c authored almost 6 years ago by aleclarson <[email protected]>
test: improve coverage

github.com/immerjs/immer - 14d7e3cbad4c1918dcfb0e5f07b594499e0107b6 authored almost 6 years ago by aleclarson <[email protected]>
fix: comparison typo

This bug prevented Immer from _not_ generating a "replace" patch when the new value is identical...

github.com/immerjs/immer - 48b371c9935398cf44f74adb935b0caeb5c6f579 authored almost 6 years ago by aleclarson <[email protected]>
test: polyfills

github.com/immerjs/immer - 551d877bca99737d83bf36e81eebf55bff7f5504 authored almost 6 years ago by aleclarson <[email protected]>
feat: limited class support

When a class instance has the new `immerable` symbol in its own properties, its prototype, or on...

github.com/immerjs/immer - 9877d64b47afe97974441648d5ddeb46e13d7ce3 authored almost 6 years ago by aleclarson <[email protected]>
test: return types of produce()

github.com/immerjs/immer - 883a258f8619223dc81e141ff1df28305f1457f8 authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): use base type as default produce() return type

Previously, the draft type was used in anticipation of weird edge cases, but this created a larg...

github.com/immerjs/immer - 3aa1c4af346378b94e4535c36ff26c8f93b1c7aa authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): produce() return type

The return type of `produce()` was not properly inferred when the producer returned anything oth...

github.com/immerjs/immer - b52b45ef6693539a4012c157ff0cfcb2f1b35e7c authored almost 6 years ago by aleclarson <[email protected]>
revert(ts): deeply immutable produce() return type

Redux users may be using Immer without expecting `produce` to have a deeply immutable return typ...

github.com/immerjs/immer - 06c8f6fac9300840079c5d517fed66a4a5138fa9 authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): reorder generic parameters of IProduce

This makes the different call signatures of `produce` have a similar order of generic parameters...

github.com/immerjs/immer - 05157afa75ee708327187cbac1b067bd259dc852 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): fix for latest commit

github.com/immerjs/immer - ee8aac05f98bafcb9af9f3d49505336f3d19a867 authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): return type of produce()

To avoid certain edge cases, we must use the expected draft type (instead of the base type) when...

github.com/immerjs/immer - 03ec620f8d6a40bc53ad5d6d1789597239005f15 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): tiny improvement

github.com/immerjs/immer - a52614a2099e437f078a76283f2bb4fdd795e88b authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): ensure produce returns an immutable type

github.com/immerjs/immer - dd25143ea1d0a3b03370bba3b91437fbd7a2687b authored almost 6 years ago by aleclarson <[email protected]>
dev: default to local typescript in vscode

github.com/immerjs/immer - 4bf415401326173499ebddcd4ee073843a59f9d3 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): produce always returns an immutable type

github.com/immerjs/immer - 89ab2b9dfb6ddeb8d4b4df8b7f055b9f203b58f6 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): improved exact type detection

github.com/immerjs/immer - 2b7c21eda3d2fda0a6e981a1d3334174d134f47c authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): base type of curried producer

Previously, a curried producer could not be passed a readonly version of
its expected base type....

github.com/immerjs/immer - b357e540c73674dfa26eb586a47cb206bd374ea9 authored almost 6 years ago by aleclarson <[email protected]>
test(ts): pass readonly array to curried producer

github.com/immerjs/immer - f94fcaaee9bb39c52c32c64cf59fbadf352fae05 authored almost 6 years ago by aleclarson <[email protected]>
fix(ts): parameter types of curried producers

Fixes #288

github.com/immerjs/immer - 89f64433e22f92413d02edf95a518e4d3e8645ec authored almost 6 years ago by aleclarson <[email protected]>
test(ts): parameter types of curried producers

github.com/immerjs/immer - f820657e9be086c651c9c6600f5a9e89ee7347ed authored almost 6 years ago by aleclarson <[email protected]>
test: tiny improvement

github.com/immerjs/immer - ee49da3f1149ca442611388ff37894299f36905e authored about 6 years ago by aleclarson <[email protected]>
test: remove debugger statement

github.com/immerjs/immer - 4523300325816d13519463fbface3aebe8e92f5d authored about 6 years ago by aleclarson <[email protected]>
test: rename and move a test

github.com/immerjs/immer - 8e0325c2400ab03c4629ac467cc0cb7b124062fa authored about 6 years ago by aleclarson <[email protected]>
test: rename and expand a test

github.com/immerjs/immer - 733e16f496d6ff3648ae5277c6574e02fd4e82ff authored about 6 years ago by aleclarson <[email protected]>
test: returning an upvalue draft from a nested producer

github.com/immerjs/immer - b0536378dee8c2227646cbab58ad31518d77ce1d authored about 6 years ago by aleclarson <[email protected]>
test: patch the `produce` function for interweaved Immer instances too

github.com/immerjs/immer - 31bbe6419a2913f4c9a7bfbb57396972af8231f9 authored about 6 years ago by aleclarson <[email protected]>
test: interweaved Immer instances

github.com/immerjs/immer - be06ef5aeb5eab0ad4a08f1f07fd5bd4aee1478b authored about 6 years ago by aleclarson <[email protected]>
feat: passing drafts to produce

Improve support for nested producers by allowing drafts to be passed
as or in the base state.

D...

github.com/immerjs/immer - 9c53415eee8bb18537d17890827bb4c27dc47692 authored about 6 years ago by aleclarson <[email protected]>
refactor: Immer#finalizeTree method

github.com/immerjs/immer - 483a27a3e2daaeb281ca6dea19632ab6000e1857 authored about 6 years ago by aleclarson <[email protected]>
test: add missing edge case

github.com/immerjs/immer - c46af36b77552c9522774d9763723b277ff43991 authored about 6 years ago by aleclarson <[email protected]>
test: remove old tests

These tests are obsoleted by newer tests.

github.com/immerjs/immer - 59788f21b9918acc760e9874b4cad53006d99c2d authored about 6 years ago by aleclarson <[email protected]>
test: remove old recursion tests

These tests handle no edge cases that arent already handled in "__tests__/base.js"

github.com/immerjs/immer - 76d4e0bb6d9030aeb157be97c38d24acd9c5d4a9 authored about 6 years ago by aleclarson <[email protected]>
test: base state that contains a draft

github.com/immerjs/immer - d9b91d58b92b319c74dc78aa47c21667b263944e authored about 6 years ago by aleclarson <[email protected]>
Merge pull request #285 from epeli/patch-1

Add immer-reducer

github.com/immerjs/immer - af55671cc0be7031bf63c3181940fa4d1986b9ba authored about 6 years ago by Michel Weststrate <[email protected]>
Add immer-reducer

github.com/immerjs/immer - 93f280d8443b7be23489e0a95645a96df215269e authored about 6 years ago by Esa-Matti Suuronen <[email protected]>