@orbit/immutable

Lightweight immutable library used by Orbit.js.

Usage no npm install needed!

<script type="module">
  import orbitImmutable from 'https://cdn.skypack.dev/@orbit/immutable';
</script>

README

@orbit/immutable

A lightweight library of immutable data structures, including:

  • ImmutableMap
  • More to come?

Internally, this library relies upon a modernized version of Matt Bierner's HAMT.

Installation

Install with yarn:

yarn add @orbit/immutable

Or with npm:

npm install @orbit/immutable

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).