-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update Lodash to 3.x #10550
Comments
Question: once it was decided the Lodash 2 deprecation period was up, would On the other hand, leaving the file versioned by major version from now on would make it clear what version is in use and reduces the amount of deprecation work that must be done: just mark the old version and when it comes times, remove it and everything else stays the same. |
Yeah, I intended to have versioned files, just like Python did it with |
I'd actually vote in favor of just directly upgrading the library in place. We've done that in the past for libraries that had breaking changes, e.g. jQuery. Looking at the changelog, I think the impact should be very limited. Many of the changes are edge cases that would be unusual to rely on, or APIs that aren't used frequently. A number of extensions include their own copy of Underscore or Lodash, and although I sorta wish they didn't, that also reduces the impact. I did a sweep through the entire extension registry and these are the only potential issues I was could see:
It looks like backwards-compatible fixes should be possible in all those cases, so I suggest we file bugs on each extension and then wait for the start of a release cycle after most of the fixes are in (since we're in no rush to upgrade Lodash). |
Off topic, thanks for posting that list. I read the change log but missed _.template. I'm updating the Show Whitespace extension and didn't know Lodash 3 changed it. |
After hearing @peterflynn's case, I'd also vote direct update without versioning, as it has been done before and the risks here look to be minimal. |
@peterflynn @le717 I filed issues with all the extensions you found (and also one other) so we can hopefully do the update in Release 1.4 👍 |
I've also created a branch (https://github.com/MarcelGerber/brackets/tree/lodash-3) for Lodash 3.x - there are only few changes to Brackets core needed. |
@marcelgerber tagging this for update immediately after 1.4 release. |
Lodash was updated to 3.10.0 (latest) with #11474. |
Now that Lodash 3 was released (latest version as of writing this: Lodash 3.1.0), we should consider switching over to the new version.
It's not 100% backwards-compatible (see Lodash Changelog for breaking changes), so I'd suggest this:
We should leave
src/thirdparty/lodash.js
untouched and introduce a newsrc/thirdparty/lodash-3.js
, which will be the only version used by Brackets itself and which extension developers can switch over to.If possible, we can also log deprecation warnings to the console to remind developers of switching over to the new version.
I'd like to start working on this this week if you're okay with that.
The text was updated successfully, but these errors were encountered: