rest-hooks
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -67,3 +67,3 @@ 'use strict'; | ||
*/ | ||
class NetworkErrorBoundary extends React__default['default'].Component { | ||
class NetworkErrorBoundary extends React__default["default"].Component { | ||
constructor(...args) { | ||
@@ -599,83 +599,55 @@ super(...args); | ||
enumerable: true, | ||
get: function () { | ||
return core.Endpoint; | ||
} | ||
get: function () { return core.Endpoint; } | ||
}); | ||
Object.defineProperty(exports, 'Index', { | ||
enumerable: true, | ||
get: function () { | ||
return core.Index; | ||
} | ||
get: function () { return core.Index; } | ||
}); | ||
Object.defineProperty(exports, 'useCache', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useCache; | ||
} | ||
get: function () { return core.useCache; } | ||
}); | ||
Object.defineProperty(exports, 'useController', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useController; | ||
} | ||
get: function () { return core.useController; } | ||
}); | ||
Object.defineProperty(exports, 'useDenormalized', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useDenormalized; | ||
} | ||
get: function () { return core.useDenormalized; } | ||
}); | ||
Object.defineProperty(exports, 'useError', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useError; | ||
} | ||
get: function () { return core.useError; } | ||
}); | ||
Object.defineProperty(exports, 'useFetcher', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useFetcher; | ||
} | ||
get: function () { return core.useFetcher; } | ||
}); | ||
Object.defineProperty(exports, 'useInvalidator', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useInvalidator; | ||
} | ||
get: function () { return core.useInvalidator; } | ||
}); | ||
Object.defineProperty(exports, 'useMeta', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useMeta; | ||
} | ||
get: function () { return core.useMeta; } | ||
}); | ||
Object.defineProperty(exports, 'usePromisifiedDispatch', { | ||
enumerable: true, | ||
get: function () { | ||
return core.usePromisifiedDispatch; | ||
} | ||
get: function () { return core.usePromisifiedDispatch; } | ||
}); | ||
Object.defineProperty(exports, 'useResetter', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useResetter; | ||
} | ||
get: function () { return core.useResetter; } | ||
}); | ||
Object.defineProperty(exports, 'useResource', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useResource; | ||
} | ||
get: function () { return core.useResource; } | ||
}); | ||
Object.defineProperty(exports, 'useRetrieve', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useRetrieve; | ||
} | ||
get: function () { return core.useRetrieve; } | ||
}); | ||
Object.defineProperty(exports, 'useSubscription', { | ||
enumerable: true, | ||
get: function () { | ||
return core.useSubscription; | ||
} | ||
get: function () { return core.useSubscription; } | ||
}); | ||
@@ -682,0 +654,0 @@ exports.CacheProvider = CacheProvider; |
{ | ||
"name": "rest-hooks", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Asynchronous data framework for React", | ||
@@ -108,4 +108,4 @@ "sideEffects": false, | ||
"@babel/runtime": "^7.7.2", | ||
"@rest-hooks/core": "^2.1.0", | ||
"@rest-hooks/endpoint": "^2.0.0" | ||
"@rest-hooks/core": "^2.2.0", | ||
"@rest-hooks/endpoint": "^2.0.1" | ||
}, | ||
@@ -121,3 +121,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "cd72f47c88aefb710bc6f33393341f9915d9bbcb" | ||
"gitHead": "4d2b1ad1a775cdb3358f272370e6ddeaf17df9bc" | ||
} |
@@ -87,5 +87,36 @@ # ![๐๐ฃ Rest hooks](./rest_hooks_logo_and_text.svg?sanitize=true) | ||
### Special thanks | ||
## Principals of Rest Hooks | ||
### Integrity | ||
- Strong inferred types | ||
- Global referential equality guarantees | ||
- Normalized store creates a single source of truth | ||
- Strong invariants robust against race conditions | ||
- Validation | ||
### Performance | ||
- Stale While Revalidate configurable cache | ||
- Only re-render | ||
### Composition over configuration | ||
- Declarative data definitions | ||
- Decoupled API definitions from usage | ||
- Co-located data dependencies | ||
- Centralized orchestration | ||
- Extensible orchestration through Managers (middleware) | ||
- Composable hooks | ||
- subject pattern | ||
- Suspense + concurrent mode async orchestration | ||
### Incremental Adoption | ||
- Simple case is simple | ||
- Scale as your app scales | ||
## Special thanks | ||
Thanks to [@0xcaff](https://github.com/0xcaff), [@melissafzhang](https://github.com/melissafzhang) | ||
and [@alexiswolfish](https://github.com/alexiswolfish) for their valuable feedback. |
Sorry, the diff of this file is too big to display
358854
122
3567
Updated@rest-hooks/core@^2.2.0
Updated@rest-hooks/endpoint@^2.0.1