Skip to content

Commit 91345a5

Browse files
authored
Add docs for migrate to 9.x (#1024)
1 parent 3b808e0 commit 91345a5

6 files changed

Lines changed: 112 additions & 2 deletions

File tree

docs/app/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Router.map(function () {
3333
// Other
3434
this.route('test-helpers');
3535
this.route('api-reference');
36+
this.route('migrate-8-0-to-9-0');
3637
});
3738

3839
this.route('cookbook', function () {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Route from '@ember/routing/route';
2+
3+
export default class PublicPagesDocsMigrate80To90Route extends Route {}

docs/app/templates/public-pages/docs.gts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ const groupedSections = [
4141
id: 'upgrade',
4242
groupName: 'Upgrade',
4343
options: [
44+
{
45+
route: 'public-pages.docs.migrate-8-0-to-9-0',
46+
text: 'Migrate from 8.0 to 9.0',
47+
},
4448
{
4549
route: 'public-pages.docs.migrate-7-0-to-8-0',
4650
text: 'Migrate from 7.0 to 8.0',

docs/app/templates/public-pages/docs/migrate-7-0-to-8-0.gts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ import { LinkTo } from '@ember/routing';
3939

4040
<div class="doc-page-nav">
4141
<LinkTo
42-
@route="public-pages.docs.animations"
42+
@route="public-pages.docs.migrate-8-0-to-9-0"
4343
class="doc-page-nav-link-prev"
44-
>&lt; Animations</LinkTo>
44+
>&lt; Migrate from 8.0 to 9.0</LinkTo>
4545
<LinkTo
4646
@route="public-pages.docs.test-helpers"
4747
class="doc-page-nav-link-next"
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
import { LinkTo } from '@ember/routing';
2+
3+
<template>
4+
<h1 class="doc-page-title">Migrate from 8.0 to 9.0</h1>
5+
6+
<p>Before migrating to 9.x, you should first update to the latest 8.x release,
7+
as most of the breaking changes were introduced in 8.x.</p>
8+
9+
<h2>Breaking changes</h2>
10+
11+
<ul>
12+
<li>
13+
<p>The minimum required Ember version is now 4.12.</p>
14+
</li>
15+
<li>
16+
<p>
17+
Passing
18+
<code>components</code>
19+
as strings is no longer supported. You must now pass all components as
20+
<code>contextual components</code>.<br />
21+
<small><i>(Ember deprecated passing components as strings in version
22+
3.25. In line with this change, we have removed the dependency on
23+
the deprecated
24+
<code>@embroider/util</code>
25+
package.)</i></small>
26+
</p>
27+
</li>
28+
<li>
29+
<p>
30+
<code>node-sass</code>
31+
has been deprecated for many years and is no longer supported. Please
32+
migrate to
33+
<code>sass</code>
34+
or
35+
<code>sass-embedded</code>.
36+
</p>
37+
</li>
38+
<li>
39+
<p>
40+
Passing
41+
<code>@dropdownId</code>
42+
wasn't working correctly without using custom modifiers and was
43+
undocumented. Remove this parameter and use the
44+
<code>uniqueId</code>
45+
property from the public API instead.
46+
<br />
47+
<small><i>(Deprecation added in 8.8)</i></small>
48+
</p>
49+
</li>
50+
<li>
51+
<p>
52+
Passing configurations to
53+
<code>ember-basic-dropdown</code>
54+
over
55+
<code>ember-cli-build.js</code>
56+
was removed. You should pass them over
57+
<code>setConfig</code>
58+
(see the installation guide)
59+
<br />
60+
<small><i>(Deprecation added in 8.9)</i></small>
61+
</p>
62+
</li>
63+
<li>
64+
<p>
65+
ember-basic-dropdown previously read the value of
66+
<code>APP.rootElement</code>
67+
from
68+
<code>ember-cli-build.js</code>. According to the v2 addon
69+
specification, addons should not read configurations from
70+
<code>ember-cli-build.js</code>. You must now pass this value via
71+
<code>setConfig</code>
72+
(see the installation guide).
73+
<br />
74+
<small><i>(Deprecation added in 8.9)</i></small>
75+
</p>
76+
</li>
77+
</ul>
78+
79+
<div class="doc-page-nav">
80+
<LinkTo
81+
@route="public-pages.docs.animations"
82+
class="doc-page-nav-link-prev"
83+
>&lt; Animations</LinkTo>
84+
<LinkTo
85+
@route="public-pages.docs.migrate-7-0-to-8-0"
86+
class="doc-page-nav-link-next"
87+
>Migrate from 7.0 to 8.0 &gt;</LinkTo>
88+
</div>
89+
</template>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { module, test } from 'qunit';
2+
import { setupTest } from 'docs/tests/helpers';
3+
4+
module('Unit | Route | public-pages/docs/migrate-8-0-to-9-0', function (hooks) {
5+
setupTest(hooks);
6+
7+
test('it exists', function (assert) {
8+
const route = this.owner.lookup(
9+
'route:public-pages/docs/migrate-8-0-to-9-0',
10+
);
11+
assert.ok(route);
12+
});
13+
});

0 commit comments

Comments
 (0)