Socket
Socket
Sign inDemoInstall

@orbit/data

Package Overview
Dependencies
2
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @orbit/data

A flexible data access and synchronization layer.


Version published
Maintainers
1
Install size
739 kB
Created

Changelog

Source

v0.17.0 (2022-01-31)

:memo: Documentation
  • #875 v0.17 blog post and docs (@dgeb)
Committers: 1

Readme

Source

@orbit/data

Applies the primitives from @orbit/core to data sources. Includes the following elements:

  • A schema for defining models, including attributes and relationships.

  • Operations used to manipulate records (e.g. addRecord, removeRecord, addToHasMany, etc.).

  • Transforms, which are composed of any number of operations, and must be performed transactionally.

  • A query language that allows query expressions to be composed in a flexible AST form.

  • A base Source class that can be used to abstract any source of data. Sources can be decorated as pullable, pushable, queryable, syncable, and/or updatable - each decorator provides a unique interface that allows for transforms and queries to be applied as appropriate.

Installation

Install with yarn:

yarn add @orbit/data

Or with npm:

npm install @orbit/data

Contributing

Installation

To install dependencies:

yarn install

Building

Distributions can be built to the /dist directory by running:

yarn build

Testing

CI Testing

Test in CI mode by running:

yarn test
Browser Testing

Test within a browser (at http://localhost:8080/) by running:

yarn start

License

Copyright 2014-2021 Cerebris Corporation. MIT License (see LICENSE for details).

Keywords

FAQs

Last updated on 31 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc