pocketbase-jsvm
v0.25.10001
Published
This package provides TypeScript typings for the PocketBase JavaScript Virtual Machine (JSVM), based on Goja and Goja-Node.
Readme
TypeScript Typings for PocketBase JSVM
This package provides TypeScript typings for the PocketBase JavaScript Virtual Machine (JSVM), based on Goja and Goja-Node.
Usage
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.
Versioning Strategy
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.
Contributing
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.
Older Versions of PocketBase
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.
