Vue Promised Versions Save

💝 Composable Promises & Promises as components

1.1.1

5 years ago
  • fix(types): fix ts types + tests (df21a23)

1.1.0

5 years ago
  • feat(types): add typings (df3eb74)
  • feat: support multiple nodes for combined slot (9b01af8)

v1.0.0

5 years ago

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 named rejected (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>

v0.2.3

5 years ago
  • ✨ allow polyfied Promise (5642c47)
  • ⬆️ up deps jest (e734bbf)
  • ⬆️ up test-utils (b4865d7)
  • ⬆️ up vue (37734d4)
  • ⬆️ up eslint deps (9199717)
  • ⬆️ up deps (7eee442)
  • 💚 use yarn.lock as checksum (212d503)

v0.2.2

6 years ago
  • 🐛 Fix duplicated promises with array (d87e8eb)

v0.2.1

6 years ago
  • 📝 document pendingDelay (5bb4a02)
  • ✨ add pendingDelay prop (7ad5fa3)
  • 🚨 linting (e9ef996)
  • 📝 add links in example (bff64fc)
  • 📝 add API reference (03301a3)
  • 📝 add code sample to examples (0b5156c)
  • 📝 update example (842089a)
  • 📝 Move example to docs before deploy (16abd3b)

v0.2.0

6 years ago
  • 📝 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

v0.1.0

6 years ago
  • 🔧 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)

v0.0.3

6 years ago
  • 🔧 Fix package.json (0aa2a9d)

v0.0.2

6 years ago
  • 🔧 Add release-it config (3f4a5c3)
  • 🎨 Rename PromiseBlocks to Promised (91fcb39)
  • 🎨 Renaming package to vue-promised (d67e844)
  • 📝 Update readme (ac71f01)
  • 🎉 Init (8955089)