This package provides TypeScript typings for the PocketBase JavaScript Virtual Machine (JSVM).
- PocketBase
jsvm.d.ts - Goja / EcmaScript 2021
- Goja-Node
- Custom
jsvm.d.tsfixes that haven't been merged upstream (see PATCHES.md)
Install the package
npm install pocketbase-jsvmUpdate your tsconfig.json
In your tsconfig.json:
{
"compilerOptions": {
"types": ["pocketbase-jsvm"],
"moduleResolution": "node"
}
}That's it! enjoy JSVM goodness throughout your project.
pocketbase-jsvm uses Upstream Anchoring.
- Our Version =
Upstream MAJOR.MINOR.(Upstream PATCH × 10000 + Our Revision Number)
Example:
- Upstream Version:
0.25.1 - Our First Revision:
0.25.10001
This keeps our fork aligned with upstream releases and allows us to manage our own revisions effectively.
Help the community by keeping the jsvm.d.ts up to date with upstream changes.
Update your fork
git fetch --all
git checkout mainApply the latest upstream changes
Copy the latest jsvm.d.ts and update the version number in package.json.
Check the diff and reapply patches
Review the diff and PATCHES.md. Reapply patches that haven't been fixed upstream.
In-package legacy support has been dropped. Please use older versions of this package, or use the jsvm.d.ts generated by the desired PocketBase version and apply PATCHES.md as needed.