Skip to content

Commit

Permalink
Upgraded to latest dependencies and firebase-functions 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pulyaevskiy committed Oct 5, 2018
1 parent 1b0b3b9 commit ce299a5
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.0-dev.10.0

- Breaking change: upgraded to JS module firebase-functions `v2.0.5` which introduced breaking
changes in `DocumentSnapshot.createTime`, `DocumentSnapshot.updateTime`

## 1.0.0-dev.9.0

- Fixed: EventContext.resource type changed from String to object.
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ development preview, open-source project.
[UPGRADING.md]: https://github.com/pulyaevskiy/firebase-functions-interop/blob/master/UPGRADING.md

> From version `1.0.0-dev.10.0` this library depends on the official Functions SDK version
> `2.0.0` or higher which introduced **breaking changes** in how `createTime` and `updateTime`
> are handled on `DocumentSnapshot` (returned as instances of new `Timestamp` type).
## What is this?

`firebase_functions_interop` provides interoperability layer for
Expand Down Expand Up @@ -82,16 +86,16 @@ description: My project functions
version: 0.0.1

environment:
sdk: '>=2.0.0-dev <2.0.0'
sdk: '>=2.0.0-dev <3.0.0'

dependencies:
# Firebase Functions bindings
firebase_functions_interop: ^1.0.0-dev

dev_dependencies:
# Needed to compile Dart to valid Node.js module.
build_runner: ^0.7.9
build_node_compilers: ^0.1.0
build_runner: ^1.0.0
build_node_compilers: ^0.2.0
```
Then run `pub get` to install dependencies.
Expand Down Expand Up @@ -139,7 +143,7 @@ targets:
compiler: dart2js
# List any dart2js specific args here, or omit it.
dart2js_args:
- --checked
- --minify
```

> By default `build_runner` compiles with DDC which is not supported by this
Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
analyzer:
strong-mode: true
exclude:
- functions/build/**

Expand Down
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"logs": "firebase functions:log"
},
"dependencies": {
"firebase-admin": "5.12.0",
"firebase-functions": "1.0.1",
"@google-cloud/firestore": "0.13.1"
"firebase-admin": "6.0.0",
"firebase-functions": "2.0.5",
"@google-cloud/firestore": "0.16.0"
},
"private": true
}
4 changes: 2 additions & 2 deletions functions/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ targets:
options:
compiler: dart2js
# List any dart2js specific args here, or omit it.
dart2js_args:
- --preview-dart-2
# dart2js_args:
# - --preview-dart-2
6 changes: 3 additions & 3 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"logs": "firebase functions:log"
},
"dependencies": {
"firebase-admin": "5.12.0",
"firebase-functions": "1.0.1",
"@google-cloud/firestore": "0.13.1"
"firebase-admin": "6.0.0",
"firebase-functions": "2.0.5",
"@google-cloud/firestore": "0.16.0"
},
"private": true
}
4 changes: 2 additions & 2 deletions functions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ dependencies:
path: ../

dev_dependencies:
build_runner: ^0.10.1
build_node_compilers: ^0.1.12
build_runner: ^1.0.0
build_node_compilers: ^0.2.0
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "functions",
"description": "Cloud Functions for Firebase",
"dependencies": {
"firebase-admin": "5.12.0",
"firebase-functions": "1.0.1",
"@google-cloud/firestore": "0.13.0"
"firebase-admin": "6.0.0",
"firebase-functions": "2.0.5",
"@google-cloud/firestore": "0.16.0"
},
"private": true
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase_functions_interop
description: JS interop library which allows writing Firebase Cloud Functions in Dart.
version: 1.0.0-dev.9.0
version: 1.0.0-dev.10.0
homepage: https://www.github.com/pulyaevskiy/firebase-functions-interop
author: Anatoly Pulyaevskiy <[email protected]>

Expand All @@ -13,7 +13,7 @@ dependencies:
node_interop: ^1.0.0-dev
node_io: ^1.0.0-dev
node_http: ^1.0.0-dev
firebase_admin_interop: ^1.0.0-dev
firebase_admin_interop: ^1.0.0-dev.20.0

dev_dependencies:
test: ^1.0.0

0 comments on commit ce299a5

Please sign in to comment.