falcor-json-graph
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.2.1"></a> | ||
## [2.2.1](https://github.com/Netflix/falcor-json-graph/compare/v2.2.0...v2.2.1) (2018-01-03) | ||
### Bug Fixes | ||
* Make JsonGraphLeaf types invariant for compatibility with upcoming AtomOrError type. ([231107e](https://github.com/Netflix/falcor-json-graph/commit/231107e)) | ||
<a name="2.2.0"></a> | ||
@@ -7,0 +17,0 @@ # [2.2.0](https://github.com/Netflix/falcor-json-graph/compare/v2.1.1...v2.2.0) (2017-12-22) |
@@ -15,3 +15,3 @@ // | ||
@@ -24,29 +24,30 @@ | ||
@@ -53,0 +54,0 @@ |
{ | ||
"name": "falcor-json-graph", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A set of factory functions for creating JSON Graph values.", | ||
@@ -37,3 +37,3 @@ "main": "lib/index.js", | ||
"eslint": "^4.12.1", | ||
"flow-bin": "^0.60.1", | ||
"flow-bin": "^0.62.0", | ||
"flow-coverage-report": "^0.4.0", | ||
@@ -40,0 +40,0 @@ "flow-remove-types": "^1.2.3", |
@@ -15,3 +15,3 @@ // @flow | ||
export type JsonGraph = { [key: string]: JsonGraphNode | void, $type?: empty }; | ||
export type JsonGraph = { [key: string]: JsonGraphNode | void, +$type?: empty }; | ||
export type JsonGraphNode = JsonGraph | JsonGraphLeaf; | ||
@@ -24,29 +24,30 @@ export type JsonGraphLeaf = | ||
export type JsonGraphAtomDefined<T: JsonValue> = JsonGraphMetadata & { | ||
$type: "atom", | ||
value: T | ||
export type JsonGraphAtomDefined<T: ?JsonValue> = JsonGraphMetadata & { | ||
+$type: "atom", | ||
+value: T | ||
}; | ||
export type JsonGraphAtomUndefined = JsonGraphMetadata & { | ||
$type: "atom", | ||
value?: empty | ||
+$type: "atom", | ||
+value?: void | ||
}; | ||
export type JsonGraphAtom = | ||
| JsonGraphAtomDefined<JsonValue> | ||
| JsonGraphAtomUndefined; | ||
export type JsonGraphAtom = JsonGraphMetadata & { | ||
+$type: "atom", | ||
+value?: ?JsonValue | ||
}; | ||
export type JsonGraphError = JsonGraphMetadata & { | ||
$type: "error", | ||
value: JsonValue | ||
+$type: "error", | ||
+value: JsonValue | ||
}; | ||
export type JsonGraphRef = JsonGraphMetadata & { | ||
$type: "ref", | ||
value: Path | ||
+$type: "ref", | ||
+value: Path | ||
}; | ||
export type JsonGraphMetadata = { | ||
$expires?: number, | ||
$size?: number, | ||
$timestamp?: number | ||
+$expires?: number, | ||
+$size?: number, | ||
+$timestamp?: number | ||
}; | ||
@@ -53,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61221
948