- Use
new Promise()pattern instead ofPromise.deferinstrapi-generate-users. - Remove
--harmonyflag.
Strapi Release: 1.6.2
Tag Name: v1.6.2
Release Date: 4/24/2017
StrapiOpen-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.
TL;DR
Strapi v1.6.2 updates Promise handling patterns and removes the --harmony flag. This release focuses on code modernization and compatibility with newer Node.js versions by adopting standard Promise patterns and removing deprecated flags.
Highlight of the Release
- Updated Promise implementation pattern from
Promise.defer()tonew Promise()instrapi-generate-users - Removed deprecated
--harmonyflag for better Node.js compatibility
Migration Guide
Migration from v1.6.1 to v1.6.2
This release requires no specific migration steps. If you were explicitly using the --harmony flag in your startup scripts or deployment configurations, you should remove it as it's no longer needed.
If you have custom code that extends or interacts with the strapi-generate-users module, be aware that the Promise implementation pattern has changed from Promise.defer() to new Promise().
Upgrade Recommendations
This is a minor update that improves code quality and compatibility. It's recommended for all users to upgrade to v1.6.2, especially if you're running on newer Node.js versions where the --harmony flag might cause warnings or compatibility issues.
The upgrade process should be straightforward with minimal risk:
npm update strapi
# or
yarn upgrade strapi
Bug Fixes
No specific bug fixes were included in this release.
New Features
No new features were added in this release. This update focuses on code modernization and compatibility improvements.
Security Updates
No security fixes were included in this release.
Performance Improvements
No specific performance improvements were included in this release.
Impact Summary
Strapi v1.6.2 is a maintenance release that modernizes the codebase by updating Promise implementation patterns and removing the deprecated --harmony flag.
The change from Promise.defer() to new Promise() aligns with modern JavaScript best practices, as Promise.defer() has been deprecated. This improves code maintainability and compatibility with newer JavaScript environments.
Removing the --harmony flag reflects Strapi's evolution to use standard JavaScript features that no longer require special Node.js flags to enable experimental features. This simplifies deployment and improves compatibility with current Node.js versions.
While these changes are technically internal refactoring, they represent Strapi's ongoing commitment to maintaining a modern, standards-compliant codebase.
