github dmno-dev/varlock @varlock/1password-plugin@0.3.1

latest releases: @varlock/dashlane-plugin@0.0.1, @varlock/passbolt-plugin@0.0.1, @varlock/1password-plugin@0.3.2...
11 hours ago

Patch Changes

  • #483 ba61adb - Add support for single-file ESM and TypeScript plugins, and improve the plugin authoring API.

    New: ESM and TypeScript single-file plugins

    Single-file plugins can now be written as .mjs or .ts files in addition to .js/.cjs. TypeScript plugins require Bun.

    Improved: explicit plugin import instead of injected global

    Plugin authors should now import plugin explicitly from varlock/plugin-lib rather than relying on the injected global:

    // CJS plugin (.js / .cjs)
    const { plugin } = require("varlock/plugin-lib");
    
    // ESM plugin (.mjs / .ts)
    import { plugin } from "varlock/plugin-lib";

    This works in both regular installs and SEA binary builds. Error classes (ValidationError, CoercionError, etc.) are also now directly importable from varlock/plugin-lib.

    Breaking change: the implicit plugin global is no longer injected into CJS plugin modules. Existing plugins must add const { plugin } = require('varlock/plugin-lib').

  • #513 3a480b2 - - fix: checkOpCliAuth() now always returns a completion callback (a no-op after the mutex is already settled) so follow-up op CLI paths still signal success/failure correctly; previously only the first call returned the deferred resolve function.

  • Updated dependencies [ba61adb, 6fe325d, 76c17f8, 7f32751]:

    • varlock@0.7.0

Don't miss a new varlock release

NewReleases is sending notifications on new releases.