Ingen beskrivning
  • TypeScript 69.9%
  • JavaScript 30.1%
Hitta en fil
Kodförråd filer (senaste incheckning först)
Filnamn Senaste incheckningsmeddelande Senaste incheckningsdatum
Bitborg Renovate e00397a3d3
Alla kontroller lyckades
CI / ci (push) Successful in 50s
Release / Release (push) Successful in 52s
chore(deps): update pnpm to v12 (#11)
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [pnpm](https://github.com/pnpm/pnpm/tree/main/pnpm) ([source](https://github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm)) | [`11.20.0` → `12.8.1`](https://renovatebot.com/diffs/npm/pnpm/11.20.0/12.8.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/12.8.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/11.20.0/12.8.1?slim=true) |

> ❗ **Important**
>
> Release Notes retrieval for this PR were skipped because no github.com credentials were available.
> If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/examples/self-hosting.md#githubcom-token-for-release-notes).

---

### Configuration

📅 **Schedule**: (in timezone Europe/Stockholm)

- Branch creation
  - "before 6am on monday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODguMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2Nob3JlIl19-->

Co-authored-by: Johannes Axner <johannes@axner.org>
Reviewed-on: #11
2026-10-02 21:19:39 +00:00
.changeset chore: release v2.0.0 (#2) 2026-09-26 12:32:23 +00:00
.forgejo/workflows ci: drop permissions block Forgejo ignores (#5) 2026-10-02 14:12:38 +00:00
.vscode ci: add release workflow (#1) 2026-02-18 20:00:03 +01:00
src fix!: observe persistence writes, move legend-state to a peer (#3) 2026-08-06 09:34:49 +02:00
.gitignore ci: report release PR CI status for branch protection (#3) 2026-09-26 13:35:57 +00:00
.prettierignore chore: prepare for initial release 2026-02-18 15:25:09 +01:00
.prettierrc chore: prepare for initial release 2026-02-18 15:25:09 +01:00
CHANGELOG.md chore: release v2.0.0 (#2) 2026-09-26 12:32:23 +00:00
commitlint.config.mjs build: add commitlint 2026-02-18 15:43:10 +01:00
cspell.json docs: add readme 2026-02-18 16:28:57 +01:00
eslint.config.js style: add eslint 2026-02-18 16:05:31 +01:00
lefthook.yml style: add eslint 2026-02-18 16:05:31 +01:00
LICENSE chore: prepare for initial release 2026-02-18 15:25:09 +01:00
package.json chore(deps): update pnpm to v12 (#11) 2026-10-02 21:19:39 +00:00
pnpm-lock.yaml chore(deps): update pnpm to v12 (#11) 2026-10-02 21:19:39 +00:00
pnpm-workspace.yaml chore(deps): update dependency vitest to v4.1.11 [security] (#6) 2026-10-02 21:00:18 +00:00
README.md fix!: observe persistence writes, move legend-state to a peer (#3) 2026-08-06 09:34:49 +02:00
RELEASING.md ci: report release PR CI status for branch protection (#3) 2026-09-26 13:35:57 +00:00
renovate.json chore(renovate): hold typescript below 7 (#12) 2026-10-02 21:16:02 +00:00
tsconfig.json fix!: observe persistence writes, move legend-state to a peer (#3) 2026-08-06 09:34:49 +02:00

Legend State Azure Functions Persist Plugin

A plugin for persisting Legend State between invocations of Azure Functions.

Installation

@legendapp/state is a peer dependency, so install it alongside the plugin. You almost certainly have it already, since you need it to create the observable you are persisting.

npm i @supernaut/legend-state-persist-azure-functions-plugin @legendapp/state
pnpm add @supernaut/legend-state-persist-azure-functions-plugin @legendapp/state

@azure/functions is an optional peer. It is only used for the InvocationContext type you may pass in for error logging, so it is erased at build time and you do not need it installed unless you already have it, which you will inside an Azure Functions app.

Usage

import { observable, syncState, when } from '@legendapp/state';
import { syncObservable } from '@legendapp/state/sync';

import { observablePersistAzureStorage } from '@supernaut/legend-state-persist-azure-functions-plugin';

// Create your state
const store$ = observable({
  key: 'value',
});

// Set up persistence with the plugin
syncObservable(state$, {
  persist: {
    name: 'store',
    plugin: observablePersistAzureStorage({
      connectionString: myConnectionString,
      partitionKey: 'store',
      tableName: 'persistedstatetable',
    }),
  },
});

// ...

// Wait for the persisted state to load
const status$ = syncState(state$);
await when(status$.isPersistLoaded);

Releasing

Releases are driven by Changesets and published from GitHub Actions with npm OIDC. Add a changeset with pnpm exec changeset in your pull request, then merge the generated "chore: release" pull request to publish. See RELEASING.md.