Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v2 draft branch in master fr v6 release #189

Open
wants to merge 91 commits into
base: master
Choose a base branch
from
Open

Conversation

hthetiot
Copy link
Contributor

@hthetiot hthetiot commented Dec 7, 2017

No description provided.

asolove and others added 30 commits December 16, 2013 09:55
This is a proposal for a new interface for property change observers,
intended to subvert property change listeners.
This change makes it possible for a deprecated shim of the old property
change listener system to coexist using the new property change observer
system.
Retain last seen value, precompute dispatch method.
-   Allow a thunk to be shared by instances if the prototype is made
    observable.
-   Fix a bug where observers on multiple properties of the same object
    would interfere.
-   Test coverage for the working edge case of an object with a setter
    but no getter.
This adds support for map, range, and array observers, with a design
coherent with the new property observers.
Based in changes to the iterator specification slated for ECMAScript 6,
but extended to pass indicies through on iteration objects.

This reimplementation largely avoids using closures for iterator
instances.

Methods of iterators that return new iterators are now conjugated
differently, to avoid colliding with the variant that will produce a
plain array. For example, `zipIterator` is now `iterateZip`.

I have removed the type checks for callbacks. Any object implementing
`call` will suffice.

:warning: This commit introduces backward incompatible changes and
should await a major version.
Also, factor this facility out of `filter`, so that recounting is an
orthogonal concern.

Recounting enforces sequential indexes on a wrapped iterator.
@hthetiot hthetiot changed the title Merge v2 branch in master fr v6 release Merge v2 draft branch in master fr v6 release Dec 7, 2017
@hthetiot hthetiot added the wip label Dec 7, 2017
@hthetiot hthetiot added this to the 6.x milestone Dec 7, 2017
@hthetiot
Copy link
Contributor Author

hthetiot commented Dec 7, 2017

screen shot 2017-12-06 at 8 34 02 pm

Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, this is a big effort. Are we attempted to reconcile v1 and v2 branches? Is there concurrent work on Montage and FRB to use the v2 observers?

@@ -9,27 +9,1743 @@ This package contains JavaScript implementations of common data
structures with idiomatic iterfaces, including extensions for Array and
Object.

<<<<<<< HEAD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge conflicts here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I will fix conflict in README.

@hthetiot
Copy link
Contributor Author

Are we attempted to reconcile v1 and v2 branches?
Yes, that what I'm trying.

Is there concurrent work on Montage and FRB to use the v2 observers?
Not yet but that going to be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants