cordova-plugin-firebasex-firestore 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # Version 2.0.3
2
+ - (ios) bugfix: fix boolean filter values in `fetchFirestoreCollection`/`listenToFirestoreCollection` being evaluated incorrectly (always `true`) due to an incorrect `NSNumber`-to-`BOOL` conversion in `getFilterValueAsType:valueIndex:typeIndex:`.
3
+
1
4
  # Version 2.0.2
2
5
  - fix: pin core plugin dependency to v2
3
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-firebasex-firestore",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Firestore module for cordova-plugin-firebasex",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-firebasex-firestore",
@@ -22,6 +22,7 @@
22
22
  "keywords": ["cordova", "firebase", "firestore"],
23
23
  "author": "Dave Alden",
24
24
  "license": "MIT",
25
+ "types": "types/index.d.ts",
25
26
  "dependencies": {
26
27
  "cordova-plugin-firebasex-core": "^2.0.0"
27
28
  },
package/plugin.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
2
  <plugin id="cordova-plugin-firebasex-firestore"
3
- version="2.0.2"
3
+ version="2.0.3"
4
4
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
5
5
  xmlns:android="http://schemas.android.com/apk/res/android">
6
6
 
@@ -190,7 +190,7 @@
190
190
 
191
191
  if ([type isEqual:@"boolean"]) {
192
192
  if ([typedValue isKindOfClass:[NSNumber class]]) {
193
- typedValue = [NSNumber numberWithBool:typedValue];
193
+ typedValue = [NSNumber numberWithBool:[typedValue boolValue]];
194
194
  } else if ([typedValue isKindOfClass:[NSString class]]) {
195
195
  bool boolValue = [typedValue boolValue];
196
196
  typedValue = [NSNumber numberWithBool:boolValue];