Comments (1)
The promises returned by Fireproof in the bless
case are Promises/A+
compliant, not ES6 compliant (https://promisesaplus.com). In general what
we need is to refactor the entire codebase to use native Promise calls and
clean things up that way. But going forward .bless
is deprecated together
with the whole "defer" model, which is not ES6 either.
On Tue, Dec 15, 2015 at 11:19 AM Josh Dague [email protected]
wrote:
When blessed, the thing returned from Fireproof is not an actual promise,
just an object with a then that is bound to the blessed library's then
function. The object is missing the catch method required by ES6 ยง
25.4.5.1
http://www.ecma-international.org/ecma-262/6.0/#sec-promise.prototype.catch
.Ideally, Fireproof would return a real promise from the blessed library.
(When un-blessed -- ie using native promises -- it does appear to return
real promises.)I'm pretty sure this is new to 3.1.
โ
Reply to this email directly or view it on GitHub
#22.
from fireproof.
Related Issues (20)
- Drop the `auth` global lock magic. HOT 3
- Should fireproof resolve on `then`? HOT 6
- new newQ() fails
- Don't use defer HOT 10
- delete .defer doesn't work HOT 2
- Bless breaks with $q in 3.1.0 HOT 5
- Please tag the 3.1.0 release
- Refs incompatible with async/await HOT 7
- Promises don't reject when the same promise is returned from a .then resolve HOT 4
- Add convenience method to strip promise methods from new refs
- typeof(options) === undefined HOT 1
- key() not available after calling await ref.push() HOT 2
- Fireproof return variables HOT 2
- Demux doesn't work with corner case of get(1)
- Firebase 3.x HOT 4
- Interested in project name
- Need method .exists() HOT 2
- Doesn't support native promises HOT 2
- add keywords to package.json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fireproof.