sveltefirets

Firebase ❤️ Svelte: A SvelteKit + Typescript + Firebase library inspired by Fireship.io

MIT License

Downloads
172
Stars
83
Committers
3

Bot releases are visible (Hide)

sveltefirets - v0.0.42 Latest Release

Published by github-actions[bot] 7 months ago

   🐞 Bug Fixes

  • Restore broken updateOnline type  -  by @jacob-8 (c8094)
    View changes on GitHub
sveltefirets -

Published by jacob-8 7 months ago

   🚀 Features

  • Add awaitableDocStore that will wait for initial document load before returning a store that continues to listen to realtime updates -  by @jacob-8
    View changes on GitHub
sveltefirets - v0.0.39

Published by github-actions[bot] 7 months ago

   🐞 Bug Fixes

  • Restore Firestore helper types to being able to use field values like timestamp  -  by @jacob-8 (ae0c6)
    View changes on GitHub
sveltefirets - v0.0.38

Published by github-actions[bot] 7 months ago

   🚀 Features

  • Add startWith option to createUserStore  -  by @jacob-8 (6f114)
  • Incremental-collection-store  -  by @jacob-8 (31e0a)

   🐞 Bug Fixes

  • Update peerDependencies to include Svelte 4 and Firebase 10
    View changes on GitHub

Changelog prior to v0.0.38

0.0.36 - 5/4/2023

  • update to latest SvelteKit 1.0+ package, update Firebase to 9.21.0
  • [breaking] if you want type intellisense for deep imports (import { loadScriptOnce } from 'sveltefirets/helpers/loader';) then update to typescript version 5 and set moduleResolution to bundler in your tsconfig.json as described in https://kit.svelte.dev/docs/packaging#typescript.

0.0.32

  • authState is set to undefined until onAuthStateChanged() either returns null or a Firebase User object enabling $authState !== undefined to be used to detect if auth has finished loading

0.0.31

  • make all options except startWith on Doc and Collection components reactive

0.0.29

    • Breaking: Switched from adding a firebaseConfig.ts file manually and passing config to sveltefirets in the root layout (client) and hooks (server) to just placing it in the PUBLIC_FIREBASE_CONFIG .env variable. firebaseConfig values are not accessed by importing from sveltefirets as the library automatically reads the .env variables now.

0.0.28

    • loadScriptOnce and loadStylesOnce dont mark script/style loaded until after it completes

0.0.27

    • Fix broken Firestore Lite methods by getting correct Firestore Lite instance

0.0.26

    • Using providerIds array instead of signInMethod on user object

0.0.25

    • Fix: User store will initialize immediately after firebase config set. v0.0.24 introduced a bug whereby the User store wouldn't initialize until something else called Firebase into action.
    • Deprecated updateUserData() in favor of saveUserData() which accepts entire authResult object from FirebaseUi for Web to add signInMethod and emailVerified fields to the base user object. Correspondingly deprecated the updateuserdata event in favor of authresult for FirebaseUiAuth.svelte.

0.0.24

    • Add continueUrl prop to FirebaseUiAuth.svelte to make passwordless email authentication feasible using a landing page in single-page apps that conditionally load FirebaseUiAuth

0.0.21

    • First version where installed package version successfully works from both server and client side when installed in another project.

0.0.19

    • Removed need to pass Firebase config to FirebaseUiAuth.svelte component (and code optimizations)

0.0.18

    • Inited firebaseApp no longer needs passed into data retrieving functions server side. Instead, Firebase config must be passed to SvelteFireTS in the root __layout.svelte load client side and in hooks.ts server side.
Package Rankings
Top 9.21% on Npmjs.org
Badges
Extracted from project README
NPM