Problem/Motivation
By the sound of #3145958: [META] Re-evaluate use of Backbone.js in core, the ancient backbone will be ditched at D11.
We need to seek for a more modern solution to replace it: likely vue, alpine, or alike.
Blazy 2.10 (DEV version as of this writing) has a plugin for object reactivity almost similar to those third parties reactive objects, only pretty inferior.
This will be enough to have vanilla JS like at GridStack:1.x while maintaining backbone heritage with very minimal reactivity.
This also has an obvious advantage to not depend on any other third party. Vanilla will do.
More info:
#2873160: Implement core management of 3rd-party FE libraries
#3198417: Official support for npm
Proposed resolution
- Replace backbone with vanilla JS
Remaining tasks
Eat enough, this is a hugo job. Do it anytime, take your time, it is a long term job, many months, likely years, before core started ditching it, don't push it too hard.
User interface changes
None, just the framework switch.
API changes
None, just the framework switch.
Data model changes
None, just the framework switch.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3266027-remove-backbone-8.patch | 832 bytes | gausarts |
| #6 | 3266027-remove-backbone-6.patch | 504 bytes | gausarts |
| #4 | 3266027-remove-backbone-5.patch | 496.63 KB | gausarts |
| #3 | 3266027-remove-backbone-3.patch | 496.63 KB | gausarts |
Comments
Comment #2
gausarts commentedComment #3
gausarts commentedMany months had passed since this was posted.
Included a massive patch due to rewriting many admin JS files:
We'll see if any misses from Drupal CS.
This requires Blazy 2.10 (or DEV version as of this writing).
Comment #4
gausarts commentedLooks like the files were not added recursively.
Checking more misses.
Comment #6
gausarts commentedIntentionally committed partially to spot issues better.
Checking for tests.
Comment #8
gausarts commentedStale.
Updated docs.
Comment #10
gausarts commentedAny issues and fixes may follow on the background or as bug reports as usual.
Committed. Thank you for contribution.