# orbit-strategies-unofficial

> Experimental strategies for Orbit.js

Latest version **0.1.3** (published 2020-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install orbit-strategies-unofficial
pnpm add orbit-strategies-unofficial
yarn add orbit-strategies-unofficial
bun add orbit-strategies-unofficial
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-01-12 |
| First published | 2020-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 321.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | tchak |
| Keywords | orbit, orbit.js, data, synchronization |

## Links

- npm: https://www.npmjs.com/package/orbit-strategies-unofficial
- Repository: https://github.com/tchak/orbit-strategies-unofficial
- Homepage: https://github.com/tchak/orbit-strategies-unofficial#readme
- Issues: https://github.com/tchak/orbit-strategies-unofficial/issues
- npm.io page: https://npm.io/package/orbit-strategies-unofficial

## Dependencies (5)

- [@orbit/core](https://npm.io/package/@orbit/core.md) ^0.17.0-beta.1
- [@orbit/data](https://npm.io/package/@orbit/data.md) ^0.17.0-beta.1
- [@orbit/utils](https://npm.io/package/@orbit/utils.md) ^0.17.0-beta.1
- [@orbit/coordinator](https://npm.io/package/@orbit/coordinator.md) ^0.17.0-beta.1
- [@orbit/record-cache](https://npm.io/package/@orbit/record-cache.md) ^0.17.0-beta.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2020-01-12
- 0.1.2 — 2020-01-04
- 0.1.1 — 2020-01-04
- 0.1.0 — 2020-01-03

## README

# orbit-strategies-unofficial

Experimental strategies for Orbit.js

## Usage

This package contains preconfigured strategies for Orbit.js.

- `PessimisticStrategy` if you are familiar with `ember-data`, you will get a very similar caching policy – you can add a `reload` or `backgroundReload` options to your queries. Plus by default a retry policy is applied.

- `OptimisticStrategy` should be used in combination with `BackupStrategy`. Just like `PessimisticStrategy` it includes caching and retry policies, but is designed to be offline first. By default it will drop any failed remote queries and respond with local data. For updates you need to override `catch` hook to handle failures.

## Installation

```
yarn add orbit-strategies-unofficial
```

## Contributing

### Installation

```
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:4200/tests/](http://localhost:4200/tests/)) by running:

```
yarn testem
```

## License

MIT License (see LICENSE for details).

---
_Source: https://npm.io/package/orbit-strategies-unofficial · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
