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 6b30a7abce
Alla kontroller lyckades
Release / Release (push) Successful in 48s
CI / ci (push) Successful in 53s
chore(deps): lock file maintenance (#18)
This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency versions.

---

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- 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-->

Reviewed-on: #18
2026-10-12 07:30:10 +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(deps): update dependency vitest to v4.1.11 [security] (#13) 2026-10-05 08:05:31 +00: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.8.2 (#17) 2026-10-05 08:21:20 +00:00
pnpm-lock.yaml chore(deps): lock file maintenance (#18) 2026-10-12 07:30:10 +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.