Skip to content

Commit 95d79d7

Browse files
MinThaMiemansona
andauthored
Release blog 4.7 (#1210)
* Release blog 4.7 * Fix linting * Update with Runspired's comments * Convince Alex that it's okay * fixing markdown lint error Co-authored-by: Chris Manson <[email protected]>
1 parent a7a9cc2 commit 95d79d7

File tree

1 file changed

+145
-0
lines changed

1 file changed

+145
-0
lines changed

content/ember-released-4-7.md

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
---
2+
title: Ember 4.7 Released
3+
authors:
4+
- the-ember-learning-team
5+
date: 2022-09-5T00:00:00.000Z
6+
tags:
7+
- releases
8+
- '2022'
9+
- version-4-x
10+
---
11+
12+
Today the Ember project is releasing version 4.7 of Ember.js, Ember Data, and Ember CLI.
13+
14+
This release kicks off the 4.8 beta cycle for all sub-projects. We encourage our community (especially addon authors) to help test these beta builds and report any bugs before they are published as a final release in six weeks' time. The [ember-try](https://github.com/ember-cli/ember-try) addon is a great way to continuously test your projects against the latest Ember releases.
15+
16+
You can read more about our general release process here:
17+
18+
- [Release Dashboard](http://emberjs.com/releases/)
19+
- [The Ember Release Cycle](https://blog.emberjs.com/new-ember-release-process/)
20+
- [The Ember Project](https://blog.emberjs.com/ember-project-at-2-0/)
21+
- [Ember LTS Releases](https://blog.emberjs.com/announcing-embers-first-lts/)
22+
23+
---
24+
25+
## Ember.js
26+
27+
Ember.js is the core framework for building ambitious web applications.
28+
29+
### Changes in Ember.js 4.7
30+
31+
Ember.js 4.7 is an incremental, backwards compatible release of Ember with bug fixes, performance improvements, and minor deprecations.
32+
33+
#### Bug Fixes
34+
35+
Ember.js 4.7 introduced 1 bug fix.
36+
37+
- [Replacing Firefox detection that used a deprecated browser API](https://github.com/emberjs/ember.js/pull/20126)
38+
39+
#### Features
40+
41+
Ember.js 4.7 introduced 0 features.
42+
43+
#### Deprecations
44+
45+
Ember.js 4.7 introduced 0 deprecations.
46+
47+
<!-- Block end -->
48+
49+
For more details on changes in Ember.js 4.7, please review the [Ember.js 4.7.0 release page](https://github.com/emberjs/ember.js/releases/tag/v4.7.0).
50+
51+
---
52+
53+
## Ember Data
54+
55+
Ember Data is the official data persistence library for Ember.js applications.
56+
57+
### Changes in Ember Data 4.7
58+
59+
Version 4.7 implements a "2.1" cache spec while deprecating the v1 cache spec. This spec differs somewhat from the [original 2.0 RFC](https://rfcs.emberjs.com/id/0461-ember-data-singleton-record-data), an updated RFC specifying the modifications will be published soon. Users looking to migrate to the 2.1 cache should expect that the finalized version of 2.1 enforces that the cache is always a singleton (vs merely allowed to be a singleton), and that data provided to the store and queries to the store from the cache should always contain identifiers in their stable form. This latter point is enforced in 4.7, the former is not yet enforced.
60+
61+
<!-- markdownlint-disable MD036 -->
62+
**Performance Improvements**
63+
> Note: many performance improvements are gated by deprecation removal, meaning that you need to resolve all deprecations for EmberData 4.7 and mark your app as compatible with that version in order to opt in to the fastest codepaths.
64+
All applications should observe significant speed improvements when using EmberData 4.7. The below call-outs are in relation to EmberData 4.6.
65+
66+
- Pushing new data into the cache is now ~33% faster
67+
- Accessing the LiveArray (peekAll / findAll) for the first time is now 97% faster
68+
- Initial Access of Related Records is now ~80% faster
69+
- Destroying all records (e.g. also sending an API request) in a loop is 62% faster
70+
- Unloading all records (of all types) is ~98% faster
71+
72+
Read more in the [release notes](https://github.com/emberjs/data/releases/tag/v4.7.1).
73+
74+
#### Bug Fixes
75+
76+
Ember Data 4.7 introduced 8 bug fixes and some tests and documentation improvements. Additional details are in the [release notes](https://github.com/emberjs/data/releases/tag/v4.7.1).
77+
78+
- [#8089](https://github.com/emberjs/data/pull/8089) Unpin yarn for consumers
79+
- [#8108](https://github.com/emberjs/data/pull/8108) Fix earlier versions of node-14
80+
- [#8118](https://github.com/emberjs/data/pull/8118) Reopen deprecation should properly pass original arguments
81+
- [#8113](https://github.com/emberjs/data/pull/8113) Account for multi-options-per-identifer possibility
82+
- [#8109](https://github.com/emberjs/data/pull/8109) Add optional polyfill for crypto.randomUUID
83+
- [#8116](https://github.com/emberjs/data/pull/8116) Clear subscriptions once unsubscribed, don't unnecessarily churn on subscriptions
84+
- [#8128](https://github.com/emberjs/data/pull/8128) `backgroundReloads` should not affect `recordIsLoaded`
85+
- [#8159](https://github.com/emberjs/data/pull/8159) uuid polyfill logic (@runspired)
86+
87+
#### Features
88+
89+
Ember Data 4.7 introduced 2 features.
90+
91+
- [#7955](https://github.com/emberjs/data/pull/7955) Explicit Polymorphic Relationship Support [emberjs/rfcs#793](https://rfcs.emberjs.com/id/0793-polymporphic-relations-without-inheritance)
92+
- [#8134](https://github.com/emberjs/data/pull/8134) The return values of hasMany relationships, peekAll, findAll and query are now proxies to native arrays and as such all native array APIs are now usable. These objects will act fully as if they are native arrays. Restrictions on immutability of the result of peekAll and query still apply ([RFC 846](https://rfcs.emberjs.com/id/0846-ember-data-deprecate-proxies)).
93+
94+
#### Deprecations
95+
96+
Ember Data 4.7 introduced 13 deprecations. Additional details are in the [release notes](https://github.com/emberjs/data/releases/tag/v4.7.1).
97+
98+
- [#8093](https://github.com/emberjs/data/pull/8093) Implement helper deprecations ([RFC 742](https://rfcs.emberjs.com/id/0742-ember-data-deprecate-helper-functions)).
99+
- [#8092](https://github.com/emberjs/data/pull/8092) Deprecate `Model.reopen`/`reopenClass` and eager static fields lookups (implements [RFC 738](https://rfcs.emberjs.com/id/0738-ember-data-deprecate-model-reopen) and [RFC 741](https://rfcs.emberjs.com/id/0741-ember-data-deprecate-model-static-field-access-without-lookup)).
100+
- [#8084](https://github.com/emberjs/data/pull/8084) Eliminate InternalModel, nearly all private API's have undergone significant change, if your app previously used these APIs the most likely refactor is to use a custom model or a custom cache.
101+
- [#8115](https://github.com/emberjs/data/pull/8115) Implement strict relationships ([RFC 739](https://rfcs.emberjs.com/id/0739-ember-data-deprecate-non-strict-relationships)).
102+
103+
For more details on changes in Ember Data 4.7, please review the
104+
[Ember Data 4.7.1 commits](https://github.com/emberjs/data/compare/v4.1.0...v4.7.1).
105+
106+
---
107+
108+
## Ember CLI
109+
110+
Ember CLI is the command line interface for managing and packaging Ember.js applications.
111+
112+
### Upgrading Ember CLI
113+
114+
You may upgrade Ember CLI using the `ember-cli-update` project:
115+
116+
```bash
117+
npx ember-cli-update
118+
```
119+
120+
This utility will help you to update your app or addon to the latest Ember CLI version. You will probably encounter merge conflicts, in which the default behavior is to let you resolve conflicts on your own. For more information on the `ember-cli-update` project, see [the GitHub README](https://github.com/ember-cli/ember-cli-update).
121+
122+
While it is recommended to keep Ember CLI versions in sync with Ember and Ember Data, this is not required. After updating ember-cli, you can keep your current version(s) of Ember or Ember Data by editing `package.json` to revert the changes to the lines containing `ember-source` and `ember-data`.
123+
124+
### Changes in Ember CLI 4.7
125+
126+
#### Bug Fixes
127+
128+
Ember CLI 4.7 introduced 1 bug fix.
129+
130+
- [Rebuild failures no longer make the ember-cli process exit.](https://github.com/ember-cli/ember-cli/pull/9987)
131+
132+
#### Features
133+
134+
Ember CLI 4.7 introduced 0 features.
135+
136+
#### Deprecations
137+
138+
Ember CLI 4.7 introduced 0 deprecations.
139+
140+
For more details on the changes in Ember CLI 4.7 and detailed upgrade
141+
instructions, please review the [Ember CLI 4.7.0 release page](https://github.com/ember-cli/ember-cli/releases/tag/v4.7.0).
142+
143+
## Thank You!
144+
145+
As a community-driven open-source project with an ambitious scope, each of these releases serves as a reminder that the Ember project would not have been possible without your continued support. We are extremely grateful to our contributors for their efforts.

0 commit comments

Comments
 (0)