question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Break after upgrade 0.9.1 -> 0.9.2

See original GitHub issue

After upgrade 0.9.1 -> 0.9.2 this code:

this.on('fetched:collection', function(collection) {
    return collection.map(function(model) {
      return dbDateTime.afterFetch(model);
    });
  });

log error:

TypeError: collection.map is not a function

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
villelahdenvuocommented, Apr 1, 2016

I did some digging and I think I found the culprit. When the event code was refactored to use Lodash’s word function, it started splitting events with colons into multiple events: https://github.com/tgriesser/bookshelf/compare/0.9.1...0.9.2#diff-c874145af93ab1534cfa36243da25a76R111

> _.words('fetched:collection')
["fetched", "collection"]
0reactions
villelahdenvuocommented, Apr 4, 2016

@rhys-vdw Thanks for the quick fix release! 🌴

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto upgrade breaks everything · Issue #576 · yeoman/yeoman ...
This is to allow us to improve the project as much as possible before the official 1.0 release. After 1.0, yeoman will only...
Read more >
Upgrading to Vault 0.9.2 - Guides - HashiCorp Developer
This upgrade guide is typically reserved for breaking changes, however it is worth calling out that the CLI interface to Vault has been...
Read more >
Changelog — JupyterHub 0.9.2 documentation
after upgrading jupyterhub. The biggest change for 0.9 is the switch to asyncio coroutines everywhere instead of tornado coroutines.
Read more >
UniFi Cloud Key Gen2/Plus firmware 0.9.2 has been released
UniFi Cloud Key Gen2/Plus firmware 0.9.2 has been released | Stable ... All system customizations are removed on firmware upgrade. Bundled Controller(s):.
Read more >
flutter_appauth 0.9.2+3 | Flutter Package - Pub.dev
If you experienced issues with 0.9.1+1 (in my experience only occurs if your iOS ... Example app has been updated accordingly; BREAKING CHANGE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found