v4.8.0
版本发布时间: 2024-05-27 22:38:56
spree/spree最新发布版本:v4.10.0(2024-09-06 20:53:03)
Spree v4.8 :fire: :fire: :fire: :fire:
🌎 This release includes some big changes in how we handle translations
previously even if you had only one language you still had to use the translations database tables - now we fall back to the original values, eg. for Products to spree_products.name
, which makes upgrading from older versions much easier (especially if you have a big product catalog)
📖 New Documentation website completely rewritten, updated, patched, integrated with API docs, and much easier to navigate - we're still working on adding missing sections/pages - stay tooned!
✨ both Admin Panel and Storefront now use Importmap, so you don't need node or any other build tool at all
🎨 both Admin Panel and Storefront received a new updated look and feel
🏎️ Storefront now uses Hotwire/Turbo
💻 easier to develop, easier to contribute - dev sandbox now runs on SQLite and doesn't require to install any additional tools
How to upgrade
Please follow Spree 4.8 upgrade guide
Spree Core
- Move Spree Backend and Spree Frontend configurations out of Spree Core. by @MatthewKennedy in https://github.com/spree/spree/pull/11805
- Remove
default_country_id
fromSpree::Config
by @rafalcymerys in https://github.com/spree/spree/pull/11964 - Pin factorybot version by @mateus-po in https://github.com/spree/spree/pull/11970
- Add runtime configuration class by @rafalcymerys in https://github.com/spree/spree/pull/11965
- Bump active_storate_validations version by @mateus-po in https://github.com/spree/spree/pull/11982
- Sp-115/Unified CircleCI test pipeline template by @mateus-po in https://github.com/spree/spree/pull/11966
- Run tests with Ruby 3.3 by @rafalcymerys in https://github.com/spree/spree/pull/11984
- Fix translation_table_alias to be valid for locales with a dash (e.g.… by @mrbrdo in https://github.com/spree/spree/pull/11989
- Directly use Mobility's locale normalization method by @mrbrdo in https://github.com/spree/spree/pull/11990
- Fix creating a new extention by @mateus-po in https://github.com/spree/spree/pull/11992
- Bulk Promo Codes by @tomdonarski in https://github.com/spree/spree/pull/11959
- Bulk promo codes improvements by @rafalcymerys in https://github.com/spree/spree/pull/11999
- Update copyright year to 2024 by @devcamke in https://github.com/spree/spree/pull/11981
- Always preserve User ID when creating a copy of non-editable address … by @damianlegawiec in https://github.com/spree/spree/pull/11768
- Remove unused alias_attribute raising deprecation message by @fdocr in https://github.com/spree/spree/pull/11976
- Change license header to match OSI format by @elliotwutingfeng in https://github.com/spree/spree/pull/11868
- Do not use redis for tests by @damianlegawiec in https://github.com/spree/spree/pull/12000
- Loosen up the dev dependencies by @damianlegawiec in https://github.com/spree/spree/pull/12001
- Fixed sandbox generation script by @damianlegawiec in https://github.com/spree/spree/pull/12002
- Use sqlite for local development to easen the setup of the project by @damianlegawiec in https://github.com/spree/spree/pull/12004
- Move away from Node to Importmap by @damianlegawiec in https://github.com/spree/spree/pull/12006
- Fixed Spree CDN on localhost by @damianlegawiec in https://github.com/spree/spree/pull/12007
- Bump version to 4.8.0.beta by @damianlegawiec in https://github.com/spree/spree/pull/12011
- Fixed Spree Stock Items unique index by @damianlegawiec in https://github.com/spree/spree/pull/12012
- Simplify Circle CI config and use .ruby-version by @damianlegawiec in https://github.com/spree/spree/pull/12013
- Use port 3000 by default, set only by @damianlegawiec in https://github.com/spree/spree/pull/12016
- Fix Spree CDN when no host is set at all by @damianlegawiec in https://github.com/spree/spree/pull/12017
- Disable webhooks during seed / sample load to speed up the process by @damianlegawiec in https://github.com/spree/spree/pull/12018
- New Spree Documentation website by @damianlegawiec in https://github.com/spree/spree/pull/12021
- Documentation - new Upgrade Guides pt1 by @damianlegawiec in https://github.com/spree/spree/pull/12023
- Feature/docs upgrade guides 2 by @damianlegawiec in https://github.com/spree/spree/pull/12025
- Add git submodules of all Spree gems to make it easier to develop it … by @damianlegawiec in https://github.com/spree/spree/pull/12027
- Update stores.mdx by @rahul2103 in https://github.com/spree/spree/pull/12028
- Update 4.5-to-4.6.mdx doc with additional fixes and hints by @mad-eel in https://github.com/spree/spree/pull/12029
- Update architecture.mdx by @rahul2103 in https://github.com/spree/spree/pull/12031
- Making sure we're always including Spree concerns with Spree namespac… by @damianlegawiec in https://github.com/spree/spree/pull/12032
- Improve AuthorizationHelpers for admin panel by @damianlegawiec in https://github.com/spree/spree/pull/12033
- Update highline requirement from ~> 2.0 to >= 2, < 4 in /sample by @dependabot in https://github.com/spree/spree/pull/11988
- relax mobility dependencies by @damianlegawiec in https://github.com/spree/spree/pull/12034
- Relax active_storage_validations dependency by @damianlegawiec in https://github.com/spree/spree/pull/12035
- Added weight/dimensions unit to Variants by @damianlegawiec in https://github.com/spree/spree/pull/12036
- Added
Comparable
mixin toSpree::Money
by @damianlegawiec in https://github.com/spree/spree/pull/12037 - Allow Rails 7.2 by @damianlegawiec in https://github.com/spree/spree/pull/12038
- fixed rails 7.2 deprecations by @damianlegawiec in https://github.com/spree/spree/pull/12039
- Use column_fallback plugin for storing default locale's translations in original columns by @mad-eel in https://github.com/spree/spree/pull/12040
- Add more model and API specs for translations by @mad-eel in https://github.com/spree/spree/pull/12043
- Fix custom authentication generators and update docs by @damianlegawiec in https://github.com/spree/spree/pull/12044
Spree Backend (Admin Panel)
- Add generic tabs partial by @rafalcymerys in https://github.com/spree/spree_backend/pull/286
- Add generic tabs partial - Spree 4.7 by @rafalcymerys in https://github.com/spree/spree_backend/pull/287
- Remove Spree::Config[:default_country_id] usages by @rafalcymerys in https://github.com/spree/spree_backend/pull/288
- Remove setting Spree::Config.default_country_id in a spec by @rafalcymerys in https://github.com/spree/spree_backend/pull/289
- Use runtime configuration for admin_path by @rafalcymerys in https://github.com/spree/spree_backend/pull/290
- Hide preferences side panel when creating a new payment method by @mateus-po in https://github.com/spree/spree_backend/pull/292
- Display webhook secret key in admin panel by @mateus-po in https://github.com/spree/spree_backend/pull/293
- Fix an issue with missing variants when adding a new product with a prototype by @mateus-po in https://github.com/spree/spree_backend/pull/295
- Add lists plugin for TinyMCE by @rafalcymerys in https://github.com/spree/spree_backend/pull/299
- Sp 145/unified circleci test pipeline by @mateus-po in https://github.com/spree/spree_backend/pull/291
- Allow PaymentMethod to register a custom partial view to display above "Payment Provider Settings" by @mateus-po in https://github.com/spree/spree_backend/pull/294
- Fix Promotions#index view when a promotion has expires_at set by @tomdonarski in https://github.com/spree/spree_backend/pull/302
- Corrected typo in translation key by @mateus-po in https://github.com/spree/spree_backend/pull/304
- Replace Node with Importmap by @damianlegawiec in https://github.com/spree/spree_backend/pull/308
- Fixed request utility import by @damianlegawiec in https://github.com/spree/spree_backend/pull/309
- Improve the importmap setup, inspired by the excellent mission contro… by @damianlegawiec in https://github.com/spree/spree_backend/pull/310
- Update jquery-ui-rails requirement from ~> 6.0 to >= 6, < 8 by @dependabot in https://github.com/spree/spree_backend/pull/311
- [skip ci] Update license.md by @damianlegawiec in https://github.com/spree/spree_backend/pull/314
- added new admin branding by @damianlegawiec in https://github.com/spree/spree_backend/pull/315
- Update sqlite3 requirement from ~> 1.4 to ~> 2.0 by @dependabot in https://github.com/spree/spree_backend/pull/316
- Don't call spreecloud in test env in admin by @damianlegawiec in https://github.com/spree/spree_backend/pull/317
Spree Frontend (Storefront)
- Remove default_country_id from Spree::Config by @rafalcymerys in https://github.com/spree/spree_rails_frontend/pull/58
- SP-176 Run specs with ruby 3.3 by @tomdonarski in https://github.com/spree/spree_rails_frontend/pull/60
- Trigger change event for cart form variant_id by @mbajur in https://github.com/spree/spree_rails_frontend/pull/51
- Remove jsbundling-rails dependency by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/62
- fixed: don't overwrite the manifest.js file during installation by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/63
- fixed turbo integration with importmap by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/64
- Disable HTTP caching by default by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/65
- Setup importmap by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/66
- general gem cleanup to prepare for v4.8 by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/70
- Feature/new design by @damianlegawiec in https://github.com/spree/spree_rails_frontend/pull/74
New Contributors
- @mateus-po made their first contribution in https://github.com/spree/spree/pull/11970
- @devcamke made their first contribution in https://github.com/spree/spree/pull/11981
- @elliotwutingfeng made their first contribution in https://github.com/spree/spree/pull/11868
- @rahul2103 made their first contribution in https://github.com/spree/spree/pull/12028
- @mbajur made their first contribution in https://github.com/spree/spree_rails_frontend/pull/51
Full Changelog: https://github.com/spree/spree/compare/v4.7.0...v4.8.0