Releases: Permify/permify-node
v1.0.9
What's Changed
- fix(ci): ensure that the necessary files are added to the commit by @shivam-sharma7 in #115
New Contributors
- @shivam-sharma7 made their first contribution in #115
Full Changelog: v1.0.8...v1.0.9
v1.0.8
v1.0.7
v1.0.5
v1.0.4
Release Notes
After receiving feedback from the community, we have reverted the parameter structure of our client functions to match the structure from v0.4.6 and earlier versions.
With this release, defining a schema will be as follows:
client.schema.write({
tenantId: "t1",
schema: `
entity user {}
entity document {
relation viewer @user
action view = viewer
}
`
});
What's Changed
Full Changelog: v0.4.9...v1.0.4
v0.4.9
Release Notes
-
SDK Generation: SDKs are now generated using the official
buf
gRPC Node generator. -
Unified Data Access: All data is accessable through the
grpc.payload
,grpc.base
, or simplygrpc
properties. -
Configuration Update: This version requires updating your configuration to include the
buf
registry in your npm settings. Make sure to add the necessary entries to your npm configuration to leverage the new SDKs. -
Object-Based Data Handling: Dictionary-typed data bodies are transitioned from sending to requiring objects to be created and set.
In versions earlier than v0.4.6, writing a schema could be done using the client.schema.write function with a dictionary option:
client.schema.write({
tenantId: "t1",
schema: `
entity user {}
entity document {
relation viewer @user
action view = viewer
}
`
});
With this release, writing a schema now involves creating and setting the appropriate request objects:
let schema = `
entity user {}
entity document {
relation viewer @user
action view = viewer
}
`;
let schemaWriteRequest = new permify.grpc.payload.SchemaWriteRequest();
schemaWriteRequest.setTenantId("t1");
schemaWriteRequest.setSchema(schema);
client.schema.write(schemaWriteRequest);
This pattern will be applied to all similar functions, where dictionary-typed data bodies are transitioned to requiring objects to be created and set. Please make sure to migrate your code accordingly.