Skip to content

Commit 3ec68de

Browse files
authored
Merge pull request #1 from angular/master
Angularfire2 Update
2 parents 68100e2 + cd5f2d1 commit 3ec68de

File tree

76 files changed

+8145
-2818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+8145
-2818
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- '5.4.1'
4+
- '6'
55

66
addons:
77
firefox: latest
@@ -14,14 +14,13 @@ addons:
1414
cache:
1515
directories:
1616
- node_modules
17-
- typings
1817

1918
env:
2019
- CXX=g++-4.8
2120

2221
install:
23-
- npm install
24-
- ./node_modules/.bin/typings install
22+
- npm install -g yarn
23+
- yarn install
2524

2625
before_script:
2726
- export DISPLAY=:99.0
@@ -30,6 +29,10 @@ before_script:
3029
script:
3130
- npm run build
3231
- ./node_modules/.bin/karma start --single-run --browsers Firefox --reporters mocha
32+
# Make sure the build that ships to npm builds without errors
33+
- npm run build_npm
34+
# Run integration test to make sure our typings are correct for user-land.
35+
- node tools/run-typings-test.js
3336
# Can't run until https://github.com/angular/protractor/issues/2784 is resolved
3437
#- ./node_modules/.bin/protractor protractor.conf.js --browser firefox
3538

CHANGELOG.md

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,115 @@
1+
<a name="2.0.0-beta.8"></a>
2+
# [2.0.0-beta.8](https://github.com/angular/angularfire2/compare/2.0.0-beta7...v2.0.0-beta.8) (2017-02-16)
3+
4+
5+
### Bug Fixes
6+
7+
* **database:** allow null values for equalTo, etc. ([#809](https://github.com/angular/angularfire2/issues/809)) ([561e7b7](https://github.com/angular/angularfire2/commit/561e7b7))
8+
* **database:** call apply instead of call ([7a85bd2](https://github.com/angular/angularfire2/commit/7a85bd2))
9+
* **database:** retrieve initial list content once ([#820](https://github.com/angular/angularfire2/issues/820)) ([5c5ff7b](https://github.com/angular/angularfire2/commit/5c5ff7b)), closes [#819](https://github.com/angular/angularfire2/issues/819)
10+
* **database:** store unwrapped snapshots ([9f3c47b](https://github.com/angular/angularfire2/commit/9f3c47b)), closes [#791](https://github.com/angular/angularfire2/issues/791)
11+
* **utils:** Make object $key and $exists properties non-enumerable ([253401f](https://github.com/angular/angularfire2/commit/253401f))
12+
* **utils:** Minor formatting improvement ([fc3774a](https://github.com/angular/angularfire2/commit/fc3774a))
13+
14+
15+
### Features
16+
17+
* **database:** adds auditTime for queries ([f9cb5c3](https://github.com/angular/angularfire2/commit/f9cb5c3)), closes [#389](https://github.com/angular/angularfire2/issues/389) [#770](https://github.com/angular/angularfire2/issues/770)
18+
* **database:** support the optional startAt key ([#821](https://github.com/angular/angularfire2/issues/821)) ([c469b11](https://github.com/angular/angularfire2/commit/c469b11))
19+
20+
21+
22+
<a name="2.0.0-beta.7"></a>
23+
# [2.0.0-beta.7](https://github.com/angular/angularfire2/compare/2.0.0-beta.6...v2.0.0-beta.7) (2017-01-13)
24+
25+
26+
### Breaking changes
27+
28+
* **auth:** Remove `FirebaseAuth` in favor of `AngularFireAuth`. ([d422e6])(https://github.com/angular/angularfire2/commit/d422e62b46a80d9fb12c9a9e2cf1cf2f7db04dd3)
29+
30+
### Bug Fixes
31+
32+
* **aot:** Remove AuthBackend param for AOT support ([f875360](https://github.com/angular/angularfire2/commit/f875360))
33+
* **auth_backend:** Update logout method to return a promise ([169ce64](https://github.com/angular/angularfire2/commit/169ce64)), closes [#583](https://github.com/angular/angularfire2/issues/583)
34+
* **config:** Add messagingSenderId to FirebaseAppConfig ([9c84869](https://github.com/angular/angularfire2/commit/9c84869))
35+
* **database:** Allow null values for equalTo, etc. ([70a3e94](https://github.com/angular/angularfire2/commit/70a3e94)), closes [#704](https://github.com/angular/angularfire2/issues/704)
36+
* **database:** Removed unused query option ([9cbc59b](https://github.com/angular/angularfire2/commit/9cbc59b)), closes [#706](https://github.com/angular/angularfire2/issues/706)
37+
* **list:** Fix FirebaseListObservable emit as array bug [#574](https://github.com/angular/angularfire2/issues/574) ([ce3de04](https://github.com/angular/angularfire2/commit/ce3de04))
38+
* **module:** Conditionally pass app name ([8427009](https://github.com/angular/angularfire2/commit/8427009))
39+
40+
### Features
41+
42+
* **module:** Add a custom FirebaseApp name ([73a3e26](https://github.com/angular/angularfire2/commit/73a3e26))
43+
44+
45+
46+
<a name="2.0.0-beta.6-preview"></a>
47+
# [2.0.0-beta.6-preview](https://github.com/angular/angularfire2/compare/2.0.0-beta.5...v2.0.0-beta.6-preview) (2016-11-02)
48+
49+
50+
### Bug Fixes
51+
52+
* **Database:** use Zone scheduler for object and list factories ([e18da0e](https://github.com/angular/angularfire2/commit/e18da0e)), closes [#637](https://github.com/angular/angularfire2/issues/637)
53+
* **AoT:** change constructor param interface type annotation to any ([2c0a57f](https://github.com/angular/angularfire2/commit/2c0a57f))
54+
* **build:** Fix npm test and test:watch commands for windows ([86b4b24](https://github.com/angular/angularfire2/commit/86b4b24)), closes [#217](https://github.com/angular/angularfire2/issues/217)
55+
* **database:** Add $ref to observables ([#447](https://github.com/angular/angularfire2/issues/447)) ([a53fac0](https://github.com/angular/angularfire2/commit/a53fac0)), closes [#294](https://github.com/angular/angularfire2/issues/294)
56+
* **imports:** add firebase imports to all places that reference firebase namespace ([c3a954c](https://github.com/angular/angularfire2/commit/c3a954c)), closes [#525](https://github.com/angular/angularfire2/issues/525)
57+
58+
59+
### Features
60+
61+
* **docs:** Add AoT installation and setup ([#546](https://github.com/angular/angularfire2/issues/546)) ([7c20d13](https://github.com/angular/angularfire2/commit/7c20d13))
62+
* **docs:** update installation guide to latest cli version ([#519](https://github.com/angular/angularfire2/issues/519)) ([648666f](https://github.com/angular/angularfire2/commit/648666f))
63+
* **hmr:** Add Hot module reloading ([c32a008](https://github.com/angular/angularfire2/commit/c32a008))
64+
65+
### Notes
66+
67+
A TypeScript issue with the previous release has been fixed, where errors about a missing `firebase` namespace were reported. For
68+
applications that worked around this issue by manually adding the `firebase.d.ts` typings to `tsconfig.json`, those typings
69+
should now be removed since the firebase namespace should automatically be resolved within AngularFire.
70+
See [this issue](https://github.com/angular/angularfire2/issues/525) for more context.
71+
72+
<a name="2.0.0-beta.5"></a>
73+
# [2.0.0-beta.5](https://github.com/angular/angularfire2/compare/2.0.0-beta.4...v2.0.0-beta.5) (2016-09-15)
74+
75+
76+
### Bug Fixes
77+
78+
* **docs:** Remove [@next](https://github.com/next) install ([5984a99](https://github.com/angular/angularfire2/commit/5984a99))
79+
* **docs:** typos ([197026a](https://github.com/angular/angularfire2/commit/197026a))
80+
* **docs:** Update for beta.4 ([f2d5ba5](https://github.com/angular/angularfire2/commit/f2d5ba5))
81+
* **docs:** Update for beta.4 ([b347e16](https://github.com/angular/angularfire2/commit/b347e16))
82+
* **firebase_*_factory.js:** Fix calls to off() which inadvertently cancel all listeners on the path ([#469](https://github.com/angular/angularfire2/issues/469)) ([b4fb281](https://github.com/angular/angularfire2/commit/b4fb281)), closes [#443](https://github.com/angular/angularfire2/issues/443)
83+
* **package:** Version number ([986685a](https://github.com/angular/angularfire2/commit/986685a))
84+
85+
86+
### Features
87+
88+
* **utils:** Add $exists method to AFUnwrappedSnapshot ([#471](https://github.com/angular/angularfire2/issues/471)) ([f67aab1](https://github.com/angular/angularfire2/commit/f67aab1))
89+
* upgrade to RC7 ([#505](https://github.com/angular/angularfire2/issues/505)) ([2410b2d](https://github.com/angular/angularfire2/commit/2410b2d))
90+
91+
### BREAKING CHANGES
92+
93+
The way this project is packaged has changed to be consistent with other Angular packages.
94+
Previously:
95+
96+
* The project just consisted of CommonJS modules, with `angularfire2.js` as the main entry point.
97+
* The project provided an `es6` directory which contained es2015 modules and es2015 JS
98+
* Package.json included `main` and `jsnext:main` fields, pointing to `angularfire2.js` and `es6/angularfire2.js`, respectively.
99+
100+
Now:
101+
102+
* The project ships ES2015 modules with ES5 JS at the root, as well as an ES5 UMD bundle at `bundles/angulafire2.umd.js`
103+
* The `main` field of `package.json` points to `bundles/angularfire2.umd.js`.
104+
* Instead of `jsnext:main`, we're using the `module` field of package.json to point to `index.js`.
105+
* Instead of `angularfire2.js` being the main entry point, an `index.js` has been added (though angulafire2.js hasn't changed significantly).
106+
107+
If you're using Rollup or Webpack, they should _just work_ with this new setup (please open issues if not). If using SystemJS, you should be able to
108+
add `format: 'esm'` inside of the packages configuration, and it should load and parse the es2015 modules correctly.
109+
110+
The addition of the umd bundle will also make it possible to use AngularFire2 in a `<script>` tag, such as in a plunker or JSBin. The library is
111+
exported on a global called `angularFire2`.
112+
1113
<a name="2.0.0-beta.4"></a>
2114
# [2.0.0-beta.4](https://github.com/angular/angularfire2/compare/2.0.0-beta.2...v2.0.0-beta.3) (2016-08-22)
3115

@@ -56,7 +168,7 @@ apps are configured, and how third-party oauth tokens are handled.
56168
## Breaking Changes:
57169
* [Upgrade to the Firebase 3.0+ SDK](https://firebase.google.com/docs/web/setup), versions less than 3.0 are not supported. [abe11a2](https://github.com/angular/angularfire2/pull/200/commits/abe11a2fd8f5a3f554056625b751e9308e56b906)
58170
* `defaultFirebase` takes in a configuration object rather than a database url string. [See docs for more info.](https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md)
59-
* Access tokens for third party auth (github, google, facebook, twitter) are not persisted after refresh.
171+
* Access tokens for third party auth (github, google, facebook, twitter) are not persisted after refresh.
60172

61173
# AngularFire2 2.0.0-beta.0
62174

CONTRIBUTING.md

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
# Contributing to AngularFire2
2+
3+
We would love for you to contribute to AngularFire2 and help make it even better than it is
4+
today! As a contributor, here are the guidelines we would like you to follow:
5+
6+
- [Code of Conduct](#coc)
7+
- [Question or Problem?](#question)
8+
- [Issues and Bugs](#issue)
9+
- [Feature Requests](#feature)
10+
- [Initial Setup](#setup)
11+
- [Submission Guidelines](#submit)
12+
- [Submitting an Issue](#submit-issue)
13+
- [Submitting a Pull Request](#submit-pr)
14+
- [Before you submit](#submit-before)
15+
- [How to submit](#submit-how)
16+
- [Deploying docs](#submit-docs)
17+
- Appendix
18+
- [Coding Rules][rules] (external link)
19+
- [Commit Message Guidelines][commit] (external link)
20+
- [Signing the CLA](#cla)
21+
22+
## <a name="coc"></a> Code of Conduct
23+
24+
Help us keep the Angular and Firebase communities open and inclusive. Please read and follow the Angular [Code of Conduct][coc].
25+
26+
## <a name="question"></a> Got a Question or Problem?
27+
28+
If you have questions about how to *use* AngularFire, please direct them to the [Angular Google Group][angular-group]
29+
discussion list or [StackOverflow][stackoverflow] (include the `firebase` and `angular` tags!).
30+
Please note that the Angular team's capacity to answer usage questions is limited.
31+
Members of the Firebase team can be reached on [Slack][slack] and via the [Firebase Google Group][firebase-group].
32+
33+
## <a name="issue"></a> Found an Issue?
34+
35+
If you find a bug in the source code, you can help us by
36+
[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can
37+
[submit a Pull Request](#submit-pr) with a fix.
38+
39+
## <a name="feature"></a> Want a Feature?
40+
41+
You can *request* a new feature by [submitting an issue](#submit-issue) to our [GitHub
42+
Repository][github]. If you would like to *implement* a new feature, please submit an issue with
43+
a proposal for your work first, to be sure that we can use it.
44+
Please consider what kind of change it is:
45+
46+
* For a **Major Feature**, first open an issue and outline your proposal so that it can be
47+
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
48+
and help you to craft the change so that it is successfully accepted into the project.
49+
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
50+
51+
## <a name="setup"></a> Initial Setup
52+
53+
1) Create a fork of AngularFire2 (See [Forking a Project][github-fork])
54+
55+
2) CD into your clone and install dependencies
56+
57+
```shell
58+
$ git clone
59+
$ npm install
60+
$ npm run build
61+
$ npm test
62+
```
63+
64+
3) Make your changes in a new git branch:
65+
66+
```shell
67+
git checkout -b my-fix-branch master
68+
```
69+
70+
## <a name="submit"></a> Submission Guidelines
71+
72+
### <a name="submit-issue"></a> Submitting an Issue
73+
Help us to maximize the effort we can spend improving the product by not reporting duplicate issues.
74+
Search the archives before you submit.
75+
76+
Providing the following information will increase the chances of your issue being dealt with quickly:
77+
78+
* **Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
79+
* **Angular Version** - what version of Angular, Firebase, and AngularFire are you using?
80+
* **Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
81+
* **Browsers and Operating System** - is this a problem with all browsers?
82+
* **Reproduce the Error** - provide a live example (using [Plunker][plunker],
83+
[JSFiddle][jsfiddle] or [Runnable][runnable]) or a unambiguous set of steps
84+
* **Related Issues** - has a similar issue been reported before?
85+
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
86+
causing the problem (line of code or commit)
87+
88+
You can file new issues by providing the above information [here](https://github.com/angular/angularfire2/issues/new).
89+
90+
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
91+
92+
#### <a name="submit-before"></a> Before you submit:
93+
94+
* Ensure proposed changes or problem have already been clearly defined and
95+
discussed in the issue tracker. We don't want you to burn time on code
96+
that isn't a good fit for the project.
97+
* Search [GitHub](https://github.com/angular/angularfire2/pulls) for an open or closed PR
98+
that relates to your submission. You don't want to duplicate effort.
99+
* Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
100+
We cannot accept code without this.
101+
* Review our [Coding Rules][rules] (external link)
102+
* Review our [Commit Message Guidelines][commit] (external link)
103+
104+
#### <a name="submit-how"></a> How to submit:
105+
106+
* Create your patch, **including appropriate test cases**.
107+
* Follow the [Angular Coding Rules][rules].
108+
* Run the full test suite, as described in the [developer documentation][dev-doc],
109+
and ensure that all tests pass.
110+
* Commit your changes using a descriptive commit message that follows the
111+
[Angular commit message conventions][commit]. Adherence to these conventions
112+
is necessary because release notes are automatically generated from these messages.
113+
114+
```shell
115+
git commit -a
116+
```
117+
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
118+
119+
* Push your branch to GitHub:
120+
121+
```shell
122+
git push origin my-fix-branch
123+
```
124+
125+
* In GitHub, send a pull request to `angular:master`.
126+
* If we suggest changes then:
127+
* Make the required updates.
128+
* Re-run the test suites to ensure tests are still passing.
129+
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
130+
131+
```shell
132+
git rebase master -i
133+
git push -f
134+
```
135+
136+
That's it! Thank you for your contribution!
137+
138+
#### <a name="submit-docs"></a> Deploying Docs
139+
140+
1) Build the docs
141+
142+
`$ npm run docs`
143+
144+
2) Deploy Docs to Firebase Hosting
145+
146+
(Ask @jeffbcross to add you as a collaborator or deploy on your behalf)
147+
148+
```
149+
$ npm install -g firebase-tools
150+
$ firebase login
151+
$ npm run docs
152+
$ cd docs
153+
$ firebase deploy
154+
```
155+
156+
## <a name="cla"></a> Signing the CLA
157+
158+
Please sign our Contributor License Agreement (CLA) before sending pull requests. For any code
159+
changes to be accepted, the CLA must be signed. It's a quick process, we promise!
160+
161+
* For individuals we have a [simple click-through form][individual-cla].
162+
* For corporations we'll need you to
163+
[print, sign and one of scan+email, fax or mail the form][corporate-cla].
164+
165+
166+
[slack]: https://firebase-community.appspot.com/
167+
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
168+
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
169+
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
170+
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
171+
[js-style-guide]: https://google.github.io/styleguide/javascriptguide.xml
172+
[jsfiddle]: http://jsfiddle.net
173+
[plunker]: http://plnkr.co/edit
174+
[runnable]: http://runnable.com
175+
[github]: https://github.com/angular/angularfire2
176+
[stackoverflow]: http://stackoverflow.com/questions/tagged/angularfire
177+
[rules]: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#rules
178+
[commit]: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines
179+
[angular-group]: https://groups.google.com/forum/#!forum/angular
180+
[firebase-group]: https://groups.google.com/forum/#!forum/firebase-talk
181+
[github-fork]: https://help.github.com/articles/fork-a-repo/

CONTRIBUTOR.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)