Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 78ab691

Browse files
chore(*): prep for 1.8.0
1 parent 59b5651 commit 78ab691

8 files changed

+51
-26
lines changed

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the
3131
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:yBpEi4).
3232
-->
3333

34-
**AngularJS version:** 1.7.x
34+
**AngularJS version:** 1.8.x
3535
<!-- Check whether this is still an issue in the most recent stable or in the snapshot AngularJS
3636
version (https://code.angularjs.org/snapshot/) -->
3737

docs/content/guide/migration.ngdoc

+24
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,30 @@ which drives many of these changes.
1515
* Several new features, especially animations, would not be possible without a few changes.
1616
* Finally, some outstanding bugs were best fixed by changing an existing API.
1717

18+
## Migrating from 1.7 to 1.8
19+
20+
Generally updating to 1.8.0 from 1.7.x should be a straightforward process and is highly recommended.
21+
AngularJS 1.8 is a breaking change release from 1.7 to mitigate a security issue.
22+
23+
JqLite no longer turns XHTML-like strings like `<div /><span />` to sibling elements when not in XHTML
24+
mode: `<div></div><span></span>`.
25+
Instead it will leave the elements alone. In non-XHTML mode the browser will convert these to nested
26+
elements: `<div><span></span></div>`.
27+
28+
This is a security fix to avoid an XSS vulnerability if a new jqLite element is created from a
29+
user-controlled HTML string. If you must have this functionality and understand the risk involved
30+
then it is posible to restore the original behavior by calling
31+
32+
```js
33+
angular.UNSAFE_restoreLegacyJqLiteXHTMLReplacement();
34+
```
35+
36+
But you should adjust your code for this change and remove your use of this function as soon as
37+
possible.
38+
39+
Note that this only patches jqLite. If you use jQuery 3.5.0 or newer, please read the
40+
[jQuery 3.5 upgrade guide](https://jquery.com/upgrade-guide/3.5/) for more details about the workarounds.
41+
1842

1943
## Migrating from 1.6 to 1.7
2044

docs/content/misc/faq.ngdoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ Yes, AngularJS can use [jQuery](http://jquery.com/) if it's present in your app
174174
application is being bootstrapped. If jQuery is not present in your script path, AngularJS falls back
175175
to its own implementation of the subset of jQuery that we call {@link angular.element jQLite}.
176176

177-
AngularJS 1.3 only supports jQuery 2.1 or above. jQuery 1.7 and newer might work correctly with AngularJS
178-
but we don't guarantee that.
177+
For AngularJS 1.8 we support jQuery 2.1+ but we suggest jQuery 3.5.1 or above to avoid a potential
178+
security issue. Earlier versions of jQuery might work correctly with AngularJS but we don't guarantee
179+
that.
179180

180181

181182
### What is testability like in AngularJS?

docs/content/misc/version-support-status.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This page describes the support status of the significant versions of AngularJS.
1010
On July 1, 2018 AngularJS entered a 3 year Long Term Support period.
1111
</div>
1212

13-
Any version branch not shown in the following table (e.g. 1.6.x) is no longer being developed.
13+
Any version branch not shown in the following table (e.g. 1.7.x) is no longer being developed.
1414

1515
<table class="dev-status table table-bordered">
1616
<thead>
@@ -23,7 +23,7 @@ Any version branch not shown in the following table (e.g. 1.6.x) is no longer be
2323
<td>Last version to provide IE 8 support</td>
2424
</tr>
2525
<tr class="stable">
26-
<td><span>1.7.x</span></td>
26+
<td><span>1.8.x</span></td>
2727
<td>Long Term Support</td>
2828
<td>See {@link version-support-status#long-term-support Long Term Support} section below.</td>
2929
</tr>
@@ -36,9 +36,9 @@ On July 1st 2018, AngularJS entered a Long Term Support period.
3636

3737
We now focus exclusively on providing fixes to bugs that satisfy at least one of the following criteria:
3838

39-
* A security flaw is detected in the 1.7.x branch of the framework
40-
* One of the major browsers releases a version that will cause current production applications using AngularJS 1.7.x to stop working
41-
* The jQuery library releases a version that will cause current production applications using AngularJS 1.7.x to stop working.
39+
* A security flaw is detected in the 1.8.x branch of the framework
40+
* One of the major browsers releases a version that will cause current production applications using AngularJS 1.8.x to stop working
41+
* The jQuery library releases a version that will cause current production applications using AngularJS 1.8.x to stop working.
4242

4343
AngularJS 1.2.x will get a new version if and only if a new severe security issue is discovered.
4444

docs/content/tutorial/step_09.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ Since we are using [npm][npm] to install client-side dependencies, this step upd
3434
"name": "angular-phonecat",
3535
...
3636
"dependencies": {
37-
"angular": "1.7.x",
38-
"angular-route": "1.7.x",
37+
"angular": "1.8.x",
38+
"angular-route": "1.8.x",
3939
"bootstrap": "3.3.x"
4040
},
4141
...
4242
}
4343
```
4444

45-
The new dependency `"angular-route": "1.7.x"` tells npm to install a version of the angular-route
46-
module that is compatible with version 1.7.x of AngularJS. We must tell npm to download and install
45+
The new dependency `"angular-route": "1.8.x"` tells npm to install a version of the angular-route
46+
module that is compatible with version 1.8.x of AngularJS. We must tell npm to download and install
4747
this dependency.
4848

4949
```

docs/content/tutorial/step_13.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ Since we are using [npm][npm] to install client-side dependencies, this step upd
3232
"name": "angular-phonecat",
3333
...
3434
"dependencies": {
35-
"angular": "1.7.x",
36-
"angular-resource": "1.7.x",
37-
"angular-route": "1.7.x",
35+
"angular": "1.8.x",
36+
"angular-resource": "1.8.x",
37+
"angular-route": "1.8.x",
3838
"bootstrap": "3.3.x"
3939
},
4040
...
4141
}
4242
```
4343

44-
The new dependency `"angular-resource": "1.7.x"` tells npm to install a version of the
45-
angular-resource module that is compatible with version 1.7.x of AngularJS. We must tell npm to
44+
The new dependency `"angular-resource": "1.8.x"` tells npm to install a version of the
45+
angular-resource module that is compatible with version 1.8.x of AngularJS. We must tell npm to
4646
download and install this dependency.
4747

4848
```

docs/content/tutorial/step_14.ngdoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ Since we are using [npm][npm] to install client-side dependencies, this step upd
3636
"name": "angular-phonecat",
3737
...
3838
"dependencies": {
39-
"angular": "1.7.x",
40-
"angular-animate": "1.7.x",
41-
"angular-resource": "1.7.x",
42-
"angular-route": "1.7.x",
39+
"angular": "1.8.x",
40+
"angular-animate": "1.8.x",
41+
"angular-resource": "1.8.x",
42+
"angular-route": "1.8.x",
4343
"bootstrap": "3.3.x",
44-
"jquery": "3.3.x"
44+
"jquery": "^3.5.1"
4545
},
4646
...
4747
}
4848
```
4949

50-
* `"angular-animate": "1.7.x"` tells npm to install a version of the angular-animate module that
51-
is compatible with version 1.7.x of AngularJS.
52-
* `"jquery": "3.3.x"` tells npm to install the latest patch release of the 3.3 version of jQuery.
50+
* `"angular-animate": "1.8.x"` tells npm to install a version of the angular-animate module that
51+
is compatible with version 1.8.x of AngularJS.
52+
* `"jquery": "^3.5.1"` tells npm to install a version of jQuery that is compatible with 3.5.x and at least 3.5.1.
5353
Note that this is not an AngularJS library; it is the standard jQuery library. We can use npm to
5454
install a wide range of 3rd party libraries.
5555

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "angular",
33
"license": "MIT",
44
"branchVersion": "^1.7.0",
5-
"branchPattern": "1.7.*",
5+
"branchPattern": "1.8.*",
66
"distTag": "next",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)