mirror of
https://github.com/appy-one/acebase-core.git
synced 2026-05-24 22:01:23 -06:00
[PR #23] [MERGED] Type improvements: optional observable & live data proxy #24
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-core#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase-core/pull/23
Author: @appy-one
Created: 11/21/2022
Status: ✅ Merged
Merged: 11/21/2022
Merged by: @appy-one
Base:
master← Head:improvement/optional-rxjs-observable📝 Commits (10+)
3759a1dnew getGlobalObject utility function105f9bcAllow any Observable implementation18026bctryimporting rxjs Observable upon load,41a3002Use typed getObservable call6d52729fix wrong return typeb910387export SimpleObservable930936ause esm build on import (temp!)1526c3cdon't ignore package-lock.json95e5c88changed eslint comma-dangle settings4cbb43cAdd rxjs as optional dependency📊 Changes
43 files changed (+1909 additions, -203 deletions)
View changed files
📝
.eslintrc(+8 -1)📝
.gitignore(+1 -2)📝
dist/cjs/acebase-base.js.map(+1 -1)📝
dist/cjs/data-proxy.js(+12 -6)📝
dist/cjs/data-proxy.js.map(+1 -1)📝
dist/cjs/data-reference.js(+5 -6)📝
dist/cjs/data-reference.js.map(+1 -1)📝
dist/cjs/index.js(+3 -1)📝
dist/cjs/index.js.map(+1 -1)📝
dist/cjs/optional-observable.js(+33 -24)📝
dist/cjs/optional-observable.js.map(+1 -1)📝
dist/cjs/utils.js(+18 -1)📝
dist/cjs/utils.js.map(+1 -1)📝
dist/esm/acebase-base.js.map(+1 -1)📝
dist/esm/data-proxy.js(+12 -6)📝
dist/esm/data-proxy.js.map(+1 -1)📝
dist/esm/data-reference.js(+5 -6)📝
dist/esm/data-reference.js.map(+1 -1)📝
dist/esm/index.js(+1 -0)📝
dist/esm/index.js.map(+1 -1)...and 23 more files
📄 Description
This PR:
adds the
rxjsdependency as anoptionalDependencyinpackage.json. This should:Observables with the right types if therxjsdependency is installedObservablemethods are used whilerxjsis not installedrxjsis not installedImproves the types of live data proxies and object collections. TODO: Get proxied value types to include proxy methods such as
getRefandstartTransactionon target and child objects without having to explicitly cast or useproxyAccessin TypeScript🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.