Skip to content

Commit a9c2fd6

Browse files
Merge pull request #1 from angular/master
Update upstream
2 parents 56ac2a7 + 7c87628 commit a9c2fd6

File tree

8 files changed

+180
-121
lines changed

8 files changed

+180
-121
lines changed

.github/ISSUE_TEMPLATE.md

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

29-
**Angular version:** 1.x.y
29+
**AngularJS version:** 1.x.y
3030
<!-- Check whether this is still an issue in the most recent stable or in the snapshot AngularJS version (https://code.angularjs.org/snapshot/) -->
3131

3232
**Browser:** [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ addons:
3636
packages:
3737
- g++-4.8
3838

39+
before_install:
40+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
41+
- export PATH="$HOME/.yarn/bin:$PATH"
42+
3943
before_script:
4044
- du -sh ./node_modules ./bower_components/ || true
4145
- "./scripts/travis/before_build.sh"

CHANGELOG.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132

133133
## Bug Fixes
134-
- **Angular:**
134+
- **AngularJS:**
135135
- do not auto-bootstrap if the `src` exists but is empty
136136
([3536e8](https://github.com/angular/angular.js/commit/3536e83d8a085b02bd6dcec8324800b7e6c734e4))
137137
- do not auto bootstrap if the currentScript has been clobbered
@@ -700,10 +700,10 @@ consolidating all the changes shown in the previous 1.6.0 release candidates.**
700700
- **feat($compile): set preAssignBindingsEnabled to false by default
701701
([bcd0d4](https://github.com/angular/angular.js/commit/bcd0d4d896d0dfdd988ff4f849c1d40366125858))**:
702702

703-
Previously, `$compileProvider.preAssignBindingsEnabled` was
704-
set to true by default. This means bindings were pre-assigned in component
705-
constructors. In Angular 1.5+ the place to put the initialization logic
706-
relying on bindings being present is the controller `$onInit` method.
703+
Previously, `$compileProvider.preAssignBindingsEnabled` was set to true by default. This means
704+
bindings were pre-assigned on component/directive controller instances (which made them available
705+
inside the constructors). In AngularJS 1.5+ the place to put the initialization logic relying on
706+
bindings being present is the controller's `$onInit` method.
707707

708708
To migrate follow the example below:
709709

@@ -1902,7 +1902,7 @@ validation), you can overwrite the built-in `step` validator with a custom direc
19021902
# 1.5.9 timeturning-lockdown (2016-11-24)
19031903

19041904
This is an interim release primarily to publish some security fixes, in particular a modification to
1905-
ensure that Angular 1 can pass the linter checks for Mozilla add-ons.
1905+
ensure that AngularJS can pass the linter checks for Mozilla add-ons.
19061906

19071907
## Security Fixes
19081908
- **bootstrap:**
@@ -1990,7 +1990,7 @@ ensure that Angular 1 can pass the linter checks for Mozilla add-ons.
19901990

19911991
Previously, `$compileProvider.preAssignBindingsEnabled` was
19921992
set to true by default. This means bindings were pre-assigned in component
1993-
constructors. In Angular 1.5+ the place to put the initialization logic
1993+
constructors. In AngularJS 1.5+ the place to put the initialization logic
19941994
relying on bindings being present is the controller `$onInit` method.
19951995

19961996
To migrate follow the example below:
@@ -5116,12 +5116,12 @@ before the $parsers are applied. Previously, the modelValue
51165116

51175117
This fixes issues where `input[date]` and `input[number]` cannot
51185118
be validated because the viewValue string is parsed into
5119-
`Date` and `Number` respectively (starting with Angular 1.3).
5119+
`Date` and `Number` respectively (starting with AngularJS 1.3).
51205120
It also brings the directives in line with HTML5 constraint
51215121
validation, which validates against the input value.
51225122

51235123
This change is unlikely to cause applications to fail, because even
5124-
in Angular 1.2, the value that was validated by pattern could have
5124+
in AngularJS 1.2, the value that was validated by pattern could have
51255125
been manipulated by the $parsers, as all validation was done
51265126
inside this pipeline.
51275127

@@ -5232,12 +5232,12 @@ before the $parsers are applied. Previously, the modelValue
52325232

52335233
This fixes issues where `input[date]` and `input[number]` cannot
52345234
be validated because the viewValue string is parsed into
5235-
`Date` and `Number` respectively (starting with Angular 1.3).
5235+
`Date` and `Number` respectively (starting with AngularJS 1.3).
52365236
It also brings the directives in line with HTML5 constraint
52375237
validation, which validates against the input value.
52385238

52395239
This change is unlikely to cause applications to fail, because even
5240-
in Angular 1.2, the value that was validated by pattern could have
5240+
in AngularJS 1.2, the value that was validated by pattern could have
52415241
been manipulated by the $parsers, as all validation was done
52425242
inside this pipeline.
52435243

@@ -5451,7 +5451,7 @@ describe('$q.when', function() {
54515451
it('should not need a call to $timeout.flush() to resolve already resolved promises',
54525452
inject(function($q, $timeout) {
54535453
$q.when('foo');
5454-
// In Angular 1.4.3 a call to `$timeout.flush();` was needed
5454+
// In AngularJS 1.4.3 a call to `$timeout.flush();` was needed
54555455
$timeout.verifyNoPendingTasks();
54565456
}));
54575457

@@ -6927,7 +6927,7 @@ it is now implemented in the ngOptions directive itself.
69276927
the `select` directive will now use strict comparison of the `ngModel` scope value against `option`
69286928
values to determine which option is selected. This means `Number` scope values will not be matched
69296929
against numeric option strings.
6930-
In Angular 1.3.x, setting `scope.x = 200` would select the `option` with the value 200 in the following `select`:
6930+
In AngularJS 1.3.x, setting `scope.x = 200` would select the `option` with the value 200 in the following `select`:
69316931

69326932
```
69336933
<select ng-model="x">
@@ -6936,7 +6936,7 @@ In Angular 1.3.x, setting `scope.x = 200` would select the `option` with the val
69366936
</select>
69376937
```
69386938

6939-
In Angular 1.4.x, the 'unknown option' will be selected.
6939+
In AngularJS 1.4.x, the 'unknown option' will be selected.
69406940
To remedy this, you can simply initialize the model as a string: `scope.x = '200'`, or if you want to
69416941
keep the model as a `Number`, you can do the conversion via `$formatters` and `$parsers` on `ngModel`:
69426942

@@ -15510,7 +15510,7 @@ with the `$route` service
1551015510

1551115511
### Breaking changes
1551215512
- we now support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined
15513-
in EcmaScript 5 throughout angular. This means that the following apis switched from
15513+
in EcmaScript 5 throughout AngularJS. This means that the following apis switched from
1551415514
YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates:
1551515515
- angular.Date.toString
1551615516
- angular.String.fromDate

docs/content/guide/migration.ngdoc

+10-10
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ commits for more info.
7575
- **$location** now uses `'!'` as the default hash-prefix for hash-bang URLs, instead of the empty
7676
string. ([Details](guide/migration#commit-aa077e8))
7777

78-
- **$compile** will (by default) not pre-assign bindings on controller instances.
79-
([Details](guide/migration#commit-bcd0d4))
78+
- **$compile** will (by default) not pre-assign bindings on component/directive controller
79+
instances. ([Details](guide/migration#commit-bcd0d4))
8080

8181
- **http** imposes additional restrictions to **JSONP** requests for security reasons
8282
(see [details](guide/migration#migrate1.5to1.6-ng-services-$http) below):
@@ -412,14 +412,14 @@ if the option does not provide a value attribute.
412412
<major />
413413
<a name="commit-bcd0d4"></a>
414414
**Due to [bcd0d4](https://github.com/angular/angular.js/commit/bcd0d4d896d0dfdd988ff4f849c1d40366125858)**,
415-
pre-assigning bindings on controller instances is disabled by default. It is still possible to turn
416-
it back on, which should help during the migration. Pre-assigning bindings has been deprecated and
417-
will be removed in a future version, so we strongly recommend migrating your applications to not
418-
rely on it as soon as possible.
415+
pre-assigning bindings on component/directive controller instances is disabled by default, which
416+
means that they will no longer be available inside the constructors. It is still possible to turn it
417+
back on, which should help during the migration. Pre-assigning bindings has been deprecated and will
418+
be removed in a future version, so we strongly recommend migrating your applications to not rely on
419+
it as soon as possible.
419420

420421
Initialization logic that relies on bindings being present should be put in the controller's
421-
`$onInit()` method, which is guaranteed to always be called _after_ the bindings have been
422-
assigned.
422+
`$onInit()` method, which is guaranteed to always be called _after_ the bindings have been assigned.
423423

424424
Before:
425425

@@ -1685,12 +1685,12 @@ before the $parsers are applied. Previously, the `$modelValue`
16851685

16861686
This fixes issues where `input[date]` and `input[number]` cannot
16871687
be validated because the `$viewValue` string is parsed into
1688-
`Date` and `Number` respectively (starting with Angular 1.3).
1688+
`Date` and `Number` respectively (starting with AngularJS 1.3).
16891689
It also brings the directives in line with HTML5 constraint
16901690
validation, which validates against the input value.
16911691

16921692
This change is unlikely to cause applications to fail, because even
1693-
in Angular 1.2, the value that was validated by pattern could have
1693+
in AngularJS 1.2, the value that was validated by pattern could have
16941694
been manipulated by the $parsers, as all validation was done
16951695
inside this pipeline.
16961696

karma-shared.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function(config, specificOptions) {
1010
browserDisconnectTimeout: 10000,
1111
browserDisconnectTolerance: 2,
1212
browserNoActivityTimeout: 30000,
13-
reporters: ['spec'],
13+
reporters: ['dots'],
1414
specReporter: {
1515
maxLogLines: 5, // limit number of lines logged per test
1616
suppressErrorSummary: true, // do not print error summary

scripts/code.angularjs.org-firebase/functions/index.js

+19-17
Original file line numberDiff line numberDiff line change
@@ -175,31 +175,33 @@ function deleteOldSnapshotZip(event) {
175175
const bucketId = object.bucket;
176176
const filePath = object.name;
177177
const contentType = object.contentType;
178+
const resourceState = object.resourceState;
178179

179180
const bucket = gcs.bucket(bucketId);
180181

181-
if (event.eventType === 'providers/cloud.storage/eventTypes/object.change' &&
182-
contentType === 'application/zip' &&
183-
filePath.startsWith('snapshot/')
182+
if (contentType !== 'application/zip' ||
183+
!filePath.startsWith('snapshot/') ||
184+
resourceState === 'not_exists' // Deletion event
184185
) {
186+
return;
187+
}
185188

186-
bucket.getFiles({
187-
prefix: 'snapshot/',
188-
delimiter: '/',
189-
autoPaginate: false
190-
}).then(function(data) {
191-
const files = data[0];
192-
193-
const oldZipFiles = files.filter(file => {
194-
return file.metadata.name !== filePath && file.metadata.contentType === 'application/zip';
195-
});
189+
bucket.getFiles({
190+
prefix: 'snapshot/',
191+
delimiter: '/',
192+
autoPaginate: false
193+
}).then(function(data) {
194+
const files = data[0];
196195

197-
oldZipFiles.forEach(function(file) {
198-
file.delete();
199-
});
196+
const oldZipFiles = files.filter(file => {
197+
return file.metadata.name !== filePath && file.metadata.contentType === 'application/zip';
198+
});
200199

200+
oldZipFiles.forEach(function(file) {
201+
file.delete();
201202
});
202-
}
203+
204+
});
203205
}
204206

205207
exports.sendStoredFile = functions.https.onRequest(sendStoredFile);

0 commit comments

Comments
 (0)