AmpersandJS / ampersand-state

Core state management object.
MIT License
141 stars 75 forks source link

Remove need for lodash/bind; Optimize #236

Closed dhritzkiv closed 7 years ago

dhritzkiv commented 8 years ago
pgilad commented 8 years ago

Great job! BTW, all the lodash includes are case-sensitive (depending on OS/FS but ubuntu is), meaning var isString = require('lodash/isstring'); will fail in ubuntu but pass in osx. You need to reference the exact file: var isString = require('lodash/isString');

dhritzkiv commented 8 years ago

Good catch. I totally forgot about that behaviour.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-96.5%) to 1.269% when pulling 5da5629b25509952108ee0ca8a33ce5a5798b81b on dhritzkiv:update-deps into 7021f00b35cf0d328749d0898e90f9670691a890 on AmpersandJS:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.716% when pulling 5c05238100291959a181eb531d6d3eb95ab69ac3 on dhritzkiv:update-deps into 7021f00b35cf0d328749d0898e90f9670691a890 on AmpersandJS:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.716% when pulling 5c05238100291959a181eb531d6d3eb95ab69ac3 on dhritzkiv:update-deps into 7021f00b35cf0d328749d0898e90f9670691a890 on AmpersandJS:master.

wraithgar commented 8 years ago

You'll likely need to rebase this PR against master, there was a bugfix PR from last week I just merged.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.733% when pulling 479cb57daa75146828f2172478f3285786675ad2 on dhritzkiv:update-deps into b27f7d300b397b8c8525f45c3e74b81d3bd9cf47 on AmpersandJS:master.

wraithgar commented 8 years ago

This looks good to me, Let's not merge this until I've published a patch release from pr #235 so we don't unnecessarily couple this lodash update with that bugfix

ETA: it's published, I'm good on this shipping whenever.

dhritzkiv commented 8 years ago

I saw that ampersand-view was updated recently to v10 to include lodash@v4 as well as ampersand-state@v5. However, ampersand-state@v5 still uses older lodash versions (addressed via this PR). When this gets a merge + release, ampersand-view will need its ampersand-state dependency updated, which will mean a new major version.

cdaringe commented 8 years ago

are we sure that it would be a major? no breaking changes would occur. dep swaps would occur, but no functionality or API change would be expected. IMHO, it's a patch, unless there's something im missing from the &-events bump.

dhritzkiv commented 8 years ago

That's a fair point.

I suppose my thinking was: ampersand-state is a critical part of ampersand-view, and any major version bumps of -state (other ampersand modules received a major update for the lodash upgrade) would require a major version bump of -view. But behaviourally, this PR shouldn't break anything.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.733% when pulling 400e13638a9721cfcadb6d4e9f1887c9da496892 on dhritzkiv:update-deps into 987cfbeceb3dd45da7b3b03e6608cd83739faf85 on AmpersandJS:master.

dhritzkiv commented 8 years ago

Any update on this PR?

cdaringe commented 8 years ago

looks good to me! loving all the 🔴 lines. :) @wraithgar's PR is merged, so hopefully he's cool with proceeding now.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.733% when pulling ae918e08f462b834e22bb2a0a1e5df71aa935bea on dhritzkiv:update-deps into 987cfbeceb3dd45da7b3b03e6608cd83739faf85 on AmpersandJS:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.006%) to 97.733% when pulling 0e968b54c5635ad40dcb91431ab44e574b4e3b29 on dhritzkiv:update-deps into 49831e5820103ea6eacb2c4d847a99f485a7f80f on AmpersandJS:master.

dhritzkiv commented 8 years ago

I merged in master, so the main changes are now:

dhritzkiv commented 7 years ago

Bump. The tests are actually passing (see the test details) and the coverage decrease is minimal. Seems this got lots of thumbs up previously. Good to merge?

wraithgar commented 7 years ago

Yes, great!