Releases: posva/vue-promised
Releases Β· posva/vue-promised
π Release 1.1.1
- fix(types): fix ts types + tests (df21a23)
π Release 1.1.0
π Release 1.0.0
New Features
combined
slot to provide granular control over how to display while the promised is pending
Improvements
- A default slot will now show when the promised is resolved
Breaking changes
- default export renamed to
Promised
- import Promised from 'vue-promised'
+ import { Promised } from 'vue-promised'
then
slot name removed. The data is now on the default slot or scoped slot- pending state of a promise must now be displayed using the
pending
slot (instead of a default slot) - the
catch
slot is now namedrejected
(status of the promise):
<Promised :promise="promise">
- <div>Loading</div>
+ <div slot="pending">Loading</div>
- <div slot="then" scoped-slot="data">{{ data }}</div>
+ <div scoped-slot="data">{{ data }}</div>
- <div slot="catch" scoped-slot="error">{{ error.message }}</div>
+ <div slot="rejected" scoped-slot="error">{{ error.message }}</div>
</Promised>
π Release 0.2.3
π Release 0.2.2
- π Fix duplicated promises with array (d87e8eb)
π Release 0.2.1
π Release 0.2.0
- π add example (c0ce2a6)
- π fix example (f2442db)
- π update docs for breaking changes (b6dc588)
- π₯ rename scoped slot error to catch (397245f)
- β¨ support scoped slot named then (same as default scoped slot) (4e7fbfe)
- β¨ support pending named slot (same as non-scoped default) (593b866)
- π¨ refactor test helper components (1b6bc11)
- π Replace donate with thanks (df7c98d)
Breaking changes:
Rename error
slot to catch
π Release 0.1.0
- π§ Ignore helpers from utils (dd635e0)
- β¨ Display errors when no slots are provided (66d4e3a)
- CircleCI check (934cb20)
- fixed the warning msg when there is no slot exists. (0476b1a)
- β¬οΈ Update faked-promise (a5f90ac)
- β Add test for cancelling promises (e52004c)
- β Test multiple promises (6109cc1)
- β Add test using faked-promise (3703431)
- π· Add circle ci (1f596ef)
- π¨ Fix lint (adeab4c)
- π§ Add eslint config (0d74d5c)
- β Add jest for testing (3ccffdd)
- Fix package name and add install guide (#1) (8089242)
- βοΈ Use kebab case in title (023c66d)
- π Add badges (2c59456)
- πΈ Adding github files (4834cd4)
- π Fix code in readme (35f1655)
π Release 0.0.3
- π§ Fix package.json (0aa2a9d)