Problem/Motivation
http://asset-packagist.org Issues and too slow
We could save time on each build when removed and use an alternative method.
For sure we could have faster CI/CD jobs too.Reasons to consider alternatives:
- Project Activity: Asset-packagist is not very actively maintained. If you notice outages or slow updates, this may become a risk.
- Modern Standards: The PHP and frontend community is moving towards direct usage of npm/yarn for managing JavaScript/CSS assets, separating PHP dependencies (Composer) and JS (npm/yarn).
- Security: Relying on third-party mirrors for asset delivery can introduce risks if the service is compromised or discontinued.
- Official Recommendations: Yii2 and newer frameworks now generally recommend using npm/yarn/Webpack/Vite etc. for asset management.
Alternatives to asset-packagist:
- Direct NPM/Yarn: Use npm/yarn for JavaScript and CSS dependencies. Manage frontend assets separately from PHP dependencies.
- Composer Asset Plugin: This was previously used but is also not actively maintained and can have performance issues.
- Custom build scripts: Integrate asset bundling (Webpack, Vite, etc.) into your deployment/build process, copying built assets into your PHP project.
In my opinion a project can manage JS/CSS or CKEditor libraries by (NPM, yarn) in (webpack, vite)
Proposed resolution
- Moving to have a better and more dynamic way of managing
drupal-librarypackages as libraries. - Remove
npm-asset/ace-buildsfromrequire - Remove
asset-packagist.orgfromrepositories
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit testing coverage
- ➖ Automated functional testing coverage
- ➖ UX/UI designer responsibilities
- ➖ Readability
- ➖ Accessibility
- ➖ Performance
- ➖ Security
- ✅ Documentation
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release notes snippet
- ✅ Release ace_editor-2.0.2
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3535687: Removed
npm-asset/ace-buildsfrom require and removedasset-packagist.orgfrom repositories
Comments
Comment #2
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshah✅ Released ace_editor-2.0.2
Comment #7
rajab natshah