Upgrading

What the 1.0 promise covers, what breaks a release, how a feature is deprecated, and the steps to move from 0.7 to 1.0 with the code before and after.

From 1.0.0-rc.1 the public API is frozen. A change that breaks it needs a new major version, a line under Breaking in the changelog and a section on this page. Minor versions add features and deprecations. Patches only fix.

All crates, the npm package, the Python package, the Go module tag and the Java artifact share one version number, and a release bumps them together.

Moving from 0.10? Only Rust code that names a few types changes: 0.10 → 1.0. The JavaScript, Python, Go and Java packages, the policy language, stored data and the audit hash need no edit.

What 1.0 freezes#

Three numbers and one list do not change inside a major version. Readers keep reading every schema and format they read at 1.0.

ValueAt 1.0Where it lives
Policy JSON schemaDSL_SCHEMA = 5strig::dsl::DSL_SCHEMA
Audit record and chain hashAUDIT_FORMAT = 1strig::audit::AUDIT_FORMAT
Client and sync protocolversion 2 (hello.version, 1 when absent)Reference
errorCode listsclosed; codes are added, never changed or reusedReference

Four checks in CI keep the promise, so it does not rest on review alone.

CheckWhat it locksFails when
cargo semver-checksThe public Rust API of strig, strig-sync, strig-redis, strig-postgres, strig-axum, strig-server and strig-macros, against the last version on crates.ioAn item is removed, renamed or changed without a major version
API snapshotscrates/strig-node/js/api/strig.d.ts.snap (every published .d.ts) and crates/strig-python/api/strig.pyi.snapThe JavaScript or Python surface changes and the snapshot was not updated
Frozen fixturesThe policy JSON for every syntax, an audit record and its chain hash, one file per sync message, the strig-server wireThe output changes by one byte
errorCode listsThe closed lists in the ReferenceA code is removed or changed

What is public API#

SurfaceWhat is covered
Rust cratesEverything reachable from the public items of strig, strig-sync, strig-redis, strig-postgres, strig-axum, strig-macros and strig-server, with the documented feature flags.
strig-cliSubcommands, flags and exit codes.
npm packageThe exports of @the-hades-organization/strig and its subpaths, their TypeScript types, and the strig-types command.
Python packageThe exports of strig (pip install strig-auth), their method names and keyword arguments, and the type stubs.
Go moduleThe exports of github.com/The-Hades-Organization/Strig/bindings/go.
Java and Kotlin packageThe public classes of io.github.the-hades-organization:strig.
Wasm ABIThe exports of strig-<version>.wasm (memory, strig_alloc, strig_free, strig_call), the operation names and JSON inputs of strig_call, and the envelope it answers with.
Policy languageThe grammar and meaning of the three syntaxes, and the canonical JSON the parser produces.
JSON specThe shape of EngineSpec, Grant, Condition, Catalog, the exported catalog and the files read by the JSON store, with their schema numbers.
Audit formatThe canonical form of a record and the hash of the chain, with its test vector.
errorCodesThe code of every error the bindings raise, and the stable names the Rust errors map to.
Wire protocolThe messages of strig-sync, strig-server and the JS /protocol module.

Not public, and free to change in any release: items marked #[doc(hidden)], anything under an internal or __private name, the layout of the built dist/ and wasm/ folders (use the exports map), the wording of error messages and hints (match on code, never on the text), the text of explain traces, the playground, the strig-inspect window and benchmark numbers.

Three crates are not library API. strig-node and strig-inspect are not published: the npm package is the surface of the first, and the second is covered only by its command line. strig-lsp ships inside the editor extension and speaks the Language Server Protocol.

What counts as a breaking change#

WhereBreakingNot breaking
RustRemoving or renaming a public item. Changing a signature or a trait. Adding a required method to a trait you implement (AuditSink, Invariant, ExclusiveStore, TupleStore). Adding a variant or field to a type that is not #[non_exhaustive]. Changing a default feature. Raising the MSRV in a patch.Adding a variant or field to a #[non_exhaustive] type. Adding a method with a default body.
npm, Python, Go, JavaRemoving or renaming an export, option, field, method or exception. Changing the code of an error. Narrowing an accepted type or widening a returned one. Dropping a supported runtime version. Moving a subpath.Adding an export, a method or an optional argument.
Wasm ABIChanging the signature of an export, removing or renaming an operation, changing the envelope.New operations and new optional input fields.
Policy language and JSONA source that parsed before parses to a different policy. Removing a keyword, op, field or syntax. Making the validator reject what it accepted.Adding a keyword. A policy that uses it exports a higher schema, so an older reader refuses it instead of reading it wrongly.
Audit formatAny change to the canonical form or the hash. It invalidates stored chains and anchors, so it needs a major version and a migration for existing chains.A new optional record field that is left out of the canonical form when unset.
errorCodesRemoving a code, or making a situation report a different one.Adding a code.
DecisionsA change that allows where it denied. It needs a test with the deny cases that must still deny, and is announced under Changed or Breaking.A fix that denies where it allowed wrongly. It is announced under Fixed, as security fixes are.

Types that can grow#

Public enums that may gain variants, and public structs the library returns, are #[non_exhaustive]. A match on them needs a catch-all arm, and a result struct is read, never built with a literal:

Rust
match builder.build() {
    Ok(engine) => use_it(engine),
    Err(EngineError::UnknownPermission(p)) => reject(p),
    Err(_) => reject_unknown(), // fails closed
}

Structs you build to configure or feed the library (Review, Resource, Anchor, Lease, SessionOptions, RetryPolicy, Proposal, EvalContext and similar) are #[non_exhaustive] too. Pass the required fields to new(...) and the optional ones through with_*:

Rust
let policy = RetryPolicy::default().with_capacity(500);

Five types stay exhaustive on purpose: Effect, PendingStatus, TupleSubject, Mutation and SubjectMatcher. Every store matches them, so a new variant must fail at compile time instead of dropping a write silently. Adding a variant to one of them is a major change.

Versions before and after 1.0#

  • Before 1.0 (0.y.z): a minor version may break the API. A patch never does. Every break is in the changelog, and on this page when it needs more than a line.
  • From 1.0 (x.y.z): only a major version breaks the public API. A minor adds features and deprecations. A patch only fixes. Security fixes ship in a patch of every supported line.
  • A pre-release (1.0.0-rc.1) can change until the final version.

Supported toolchains#

ToolchainSupportedDropping a version
Rust (MSRV)1.88A minor version only, never a patch. The MSRV stays at least six months old and the changelog announces it.
Node and BunNode 18.17 or newer, Bun 1.1 or newerA major version, unless the runtime has been end-of-life for more than six months.
Python3.9 or newer. One abi3 wheel per platform covers every later version: linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64. The source distribution builds anywhere with a Rust toolchain.As Node.
Go1.22 or newerAs Node.
Java17 or newer, and Kotlin on any version that targets itAs Node.
BrowsersCurrent evergreen browsers, through the browser export and the WebAssembly backendA major version.

The npm package has a native module for linux-x64 and linux-arm64 (glibc), darwin-x64, darwin-arm64 and win32-x64. Linux with musl uses the WebAssembly backend. Go and Java run the engine on a WebAssembly runtime written in the host language, so any OS and architecture that runs Go or the JVM works. Adding a platform is not breaking. Removing one is.

Deprecation policy#

  1. Warn in a minor. The release notes list the feature under Deprecated, with the replacement and the version where it goes.
  2. Remove only in the next major. A deprecated item stays through the rest of the major line.
  3. Keep it working. A deprecated item keeps its behaviour. The only change allowed is the warning.
  4. Security is the exception. When keeping something works against safety, it can be removed or made to fail closed in a minor or a patch. The advisory and the changelog say so.

How the warning reaches you:

WhereHow you see it
Rust#[deprecated(since = "1.2.0", note = "use new_name; removed in 2.0")]. The compiler warns at every use. CI builds with -D warnings, so a project that denies warnings fails at the first build after the upgrade.
JavaScript and TypeScriptA @deprecated JSDoc tag in the .d.ts, with the replacement, which editors strike through. At runtime, a one-time process.emitWarning(message, 'DeprecationWarning', 'STRIG_DEPnnn') on Node and Bun (console.warn in the browser). Run Node with --throw-deprecation in your tests to fail on a use. The changelog repeats each STRIG_DEPnnn code.
Policy language and JSONA deprecated keyword or field still parses. The validator reports a warning with the position and the replacement in the hint.
Error codesA deprecated code keeps being thrown until the major version. The changelog names the code that replaces it.

Changes made before this policy, such as the needs to depends_on rename in 0.5.0, were breaking at once. From now on a rename goes through the steps above. Nothing is deprecated at 1.0.

1.0.0#

The public API is frozen from 1.0.0-rc.1. This was the last window for breaking changes, and it breaks only Rust code that names the types below.

Rust: growing enums and result structs are #[non_exhaustive]#

About 40 public enums that can gain a variant and about 60 structs the library returns can now grow without a major version. The enums include the error types (EngineError, GrantError, SpecError, PendingError, AuditError, QueryError), Condition, Operand, Reason, Rewrite, Value and MutationKind. The structs include Decision, Explanation, WhoCan, CheckAnswer, AuditStats, Violation and Materialized.

Before.

Rust
match builder.build() {
    Ok(engine) => use_it(engine),
    Err(EngineError::UnknownPermission(p)) => reject(p),
}

After. Add a catch-all arm that fails closed, and .. when you destructure a result struct.

Rust
match builder.build() {
    Ok(engine) => use_it(engine),
    Err(EngineError::UnknownPermission(p)) => reject(p),
    Err(_) => reject_unknown(),
}
let Decision { effect, .. } = decision;

Step. Search your code for match on these enums and for destructured result structs. A result struct is no longer built with a literal outside its crate: take one from the API that produces it.

Rust: input structs are built with a constructor#

The 20 structs you build to configure or feed the library can no longer be built with a literal, nor with ..Default::default(), outside their crate. Required fields go in new(...), optional ones in with_*, and configuration structs keep Default. Reading a field is unchanged, and so is assigning one on a value you own. A pattern that destructures one needs ...

Before.

Rust
let policy = RetryPolicy { capacity: 500, ..RetryPolicy::default() };
let review = Review { now: t, ..review };

After.

Rust
let policy = RetryPolicy::default().with_capacity(500);
let review = review.with_now(t); // Review is now Copy

Step. Replace each literal with the constructor in the table. A store implemented outside this repository builds what it returns the same way (Lease::new, Review::new).

StructBeforeAfter
ReviewReview { engine, current, tuples: None, now, meta }Review::new(engine, current, now, meta), .with_tuples(store)
ProposalProposal { actor, mutation, before, after, tuples: None, now: None }Proposal::new(actor, mutation, before, after), .with_tuples(store), .with_now(now)
EvalContextEvalContext { subject, resource, env }EvalContext::new(subject, resource, env)
CapabilitySetCapabilitySet { subject, grants }CapabilitySet::new(subject, grants)
LeaseLease { resource, holder, priority, acquired_at, expires_at }Lease::new(resource, holder, priority, acquired_at, expires_at)
ExclusivePermissionsExclusivePermissions { hold, preempt }ExclusivePermissions::new(hold, preempt)
ResourceResource { path, attrs: Default::default() }Resource::from_path(path), or Resource::new(kind, id).within(..)
AnchorAnchor { kind, id }Anchor::new(kind, id) or Anchor::kind_only(kind)
RoleAssignmentRoleAssignment { role, scope, valid_from, valid_until }RoleAssignment::new(role) or ::in_scope(role, scope), .valid_from(t), .valid_until(t)
OverrideSpecOverrideSpec { rule, except }OverrideSpec::new(rule).with_except(except)
RetryPolicyRetryPolicy { capacity: 500, ..RetryPolicy::default() }RetryPolicy::default().with_capacity(500); also with_base_delay_ms, with_max_delay_ms, with_on_drop
NoteNote { text, anchor, origin }Note::new(text, anchor, origin)
NoteAnchorNoteAnchor { element, placement }NoteAnchor::new(element, placement)
NoteOriginNoteOrigin { file, language, line, column, field }NoteOrigin::new(file, language, line, column), .with_field(field)
import::openfga::OptionsOptions { model_file, ..Options::default() }Options::default().with_model_file(..), .with_tuples_file(..)
import::casbin::OptionsOptions { actions, ..Options::default() }Options::default().with_actions(..), .with_model_file(..), .with_policy_file(..)
SessionOptions (strig-sync)SessionOptions { heartbeat: None, ..Default::default() }SessionOptions::default().with_heartbeat(None), .with_buffer(n)
WindowColumns (strig-postgres)WindowColumns { effect, ..Default::default() }WindowColumns::default().with_effect(..); also with_valid_from, with_valid_until, with_allow_effect
ListRequest (strig-server)ListRequest { subject, permission, kind, layout, resources, env, at }ListRequest::new(subject, permission, kind), .with_layout(..), .with_resources(..), .with_env(..), .with_at(..)
RawResponse (strig-server)RawResponse { status, body }RawResponse::new(status, body)

New, no action#

  • strig::audit::AUDIT_FORMAT (1) and strig::dsl::DSL_SCHEMA (5) are public constants.
  • dsl.run_tests is in the __all__ of the Python package.

0.10.0#

Four changes break, all of them only for Rust code that names these types. The JavaScript package, the Python, Go and Java bindings, the JSON protocol, stored requests and records, and the audit hash need no edit.

Rust: AuditAction is #[non_exhaustive] and has ElevationReview#

Before.

Rust
match record.action { AuditAction::Apply => .., AuditAction::Check => .. /* every variant */ }

After.

Rust
match record.action { AuditAction::Apply => .., AuditAction::Check => .., _ => .. }

Step. Add a _ => arm to every match on AuditAction. ElevationReview is written only by Elevations::close_review, and in the JSON it is elevation_review: add it to a closed list of action values in a log consumer. PendingStore has a new method, annotate, with a default that refuses, so existing implementations still compile.

Rust: PendingRequest, Approved and AuditRecord gain impact#

Before.

Rust
let req = PendingRequest { id, actor, mutation, requested_at, status, expires_at, .. };
let AuditRecord { id, action, .. } = record;

After.

Rust
let req = PendingRequest::new(id, actor, mutation, requested_at).expiring_at(Some(at)).with_impact(impact);
let AuditRecord { id, action, .. } = record;

Step. Build a PendingRequest with PendingRequest::new(..) and its builders (expiring_at, with_status, with_impact, with_elevation). Approved (field proposed_impact) and AuditRecord come from Approvals and the auditor, so only code that built them by hand changes. Add .. to every pattern that destructures any of the three. Stored requests and records without impact still load.

Rust: CatalogExport gains mutually_exclusive and conflicting_actions#

Before.

Rust
let export = CatalogExport { permissions, roles };
let CatalogExport { permissions, roles } = export;

After.

Rust
let export = CatalogExport { permissions, roles, ..CatalogExport::default() };
let CatalogExport { permissions, roles, .. } = export;

Step. Build it with CatalogExport { .., ..CatalogExport::default() } or through Catalog::export, and put .. in every pattern that destructures it. Impact gains separation. JSON and the bindings are unaffected: both fields are optional on read and omitted when empty.

Rust: revisions in strig-sync and strig-server types#

Change (strig-sync), Snapshot, CheckRequest, CheckResponse, BatchRequest and BatchResponse (strig-server) gain a revision (min_revision on the two requests). ServerMessage and ClientMessage gain variants and fields (ClientMessage::RefreshAtLeast, ServerMessage::Hello.version, ServerMessage::Capabilities.revision). All of them are now #[non_exhaustive].

Before.

Rust
let change = Change { scope, kind, .. };
let req = CheckRequest { subject, permission, resource, env, at };
match message { ServerMessage::Hello { .. } => .., ServerMessage::Change(c) => .. /* every variant */ }

After.

Rust
let change = Change::new(kind, scope).with_revision(rev);
let req = CheckRequest::new(subject, permission, resource).with_env(env).at(at).with_min_revision(rev);
match message { ServerMessage::Hello { .. } => .., ServerMessage::Change(c) => .., _ => .. }

Step. Build values with the constructors and builders (Change::new and with_revision, Snapshot::new with with_revision and with_tuples, CheckRequest::new with with_env, at and with_min_revision, BatchRequest::new, ServerMessage::hello and ServerMessage::capabilities with with_revision). Add .. to every pattern that destructures these structs and the two ServerMessage variants, and a _ arm to every match on the two enums. Responses are built by the server, so only code that built them by hand changes. The JSON protocol stays additive: every new field is optional and omitted when empty, and a peer that sends none keeps working.

Policies with separation of duties export "schema": 5#

DSL_SCHEMA is now 5. A policy that uses mutually_exclusive, conflicting_actions or the separation_of_duties invariant exports its canonical JSON with "schema": 5. A reader of an older schema refuses it instead of ignoring a rule that denies. A policy without them exports the schema it did before.

Step. Upgrade every reader of the exported JSON (the JS package, strig-cli, other services) before you ship a policy that uses them.

New, no action#

Everything else in 0.10 is additive: the language server and VS Code extension, audit proofs (Merkle, RFC 3161), why_not, change impact, strig diff and strig lint, the Casbin and OpenFGA importers, temporary elevation and break-glass, separation of duties, recertification campaigns and revisions for reading your own writes.

0.9.0#

One change breaks, and only for Rust code. The JavaScript package, the JSON spec and stored data need no edit.

Rust: Grant, PermissionDef, Request, CatalogError, GrantError and Verdict are #[non_exhaustive]#

Field permissions add Grant::fields, PermissionDef::fields, Request::field and new variants of CatalogError, GrantError and Verdict.

Before.

Rust
let g = Grant { id, effect, subject, permission, target, condition, .. };
match verdict { Verdict::Candidate => .., Verdict::OutOfScope => .. /* every variant */ }

After.

Rust
let g = Grant::allow(id, subject, permission, target).when(condition);
let r = Request::new(subject, permission, resource).field("email");
match verdict { Verdict::Candidate => .., Verdict::OutOfScope => .., _ => .. }

Step. Build values with the constructors and builders (Grant::allow, Grant::deny, Grant::new and its chained methods, PermissionDef::new and its builders, Request::new with .field(..)), and add a _ arm to every match on CatalogError, GrantError and Verdict. Nothing changes for a policy that does not use fields.

Policies with fields export "schema": 4#

DSL_SCHEMA is now 4. A policy that uses fields exports its canonical JSON with "schema": 4. A reader of an older schema refuses it instead of reading a field-restricted grant as covering the whole resource. A policy without fields exports the schema it did before.

Step. Upgrade every reader of the exported JSON before you ship a policy with fields.

New, no action#

ORM adapters (/prisma, /drizzle, /kysely), Envoy External Authorization in strig-server (envoy feature, off by default), policy tests and strig-cli, the Python package strig-auth, the Go and Java bindings over strig-wasi, and allowedFields, explainFields and pickAllowed in the JS binding.

0.8.0#

Nothing breaks. Every change is additive and the defaults behave as in 0.7. Upgrading the crates and the npm package needs no edit to your code, your policies or your stored data.

New, no action: opt-in features#

  • tracing (a feature of strig, strig-sync, strig-postgres, strig-redis and strig-server, off by default): spans through tracing and metrics through the metrics facade. With the feature off nothing is compiled in.
  • conformance (a feature of strig, off by default, not stable API): strig::exclusive_conformance::run, the battery to run against your own ExclusiveStore.
  • React and Angular (@the-hades-organization/strig/react and /angular): react (18 or 19) and @angular/core (17+) are optional peers. Install them only if you import those subpaths.

New, no action: Postgres and Redis storage#

PgStore, PgExclusiveStore and RedisExclusiveStore are additions. strig-postgres migration 4 adds the <prefix>_exclusive table. migrate is idempotent and additive, so run it as you already do. The ExclusiveStore trait gained acquire_lease, renew_lease, release_lease and remove_expired with default bodies, so a store you implemented keeps compiling. PgQueryError is #[non_exhaustive]; an exhaustive match on it already needs a _ arm.

New, no action: AuthZEN in strig-server#

DecisionServer::with_authzen(AuthzenConfig) adds /access/v1/* and /.well-known/authzen-configuration next to /v1. Without that call the server has no such route and /v1 is unchanged.

New, no action: checkMany and explainMany#

engine.checkMany(ctx, requests) and engine.explainMany(ctx, requests) decide a batch in one call. check, decide and explain return the same results and throw the same errors as before. They run faster for plain-JSON requests.

0.7.0#

Most of 0.7.0 is additive. The Rust items below break code that matches or builds the changed types exhaustively; the npm and policy items change behaviour you may depend on.

Rust: ChainError has two new variants#

Before. match error { Tampered { .. } => .., Broken { .. } => .., Unchained { .. } => .. } was exhaustive.

After. verify_chain_anchored can also return ChainError::AnchorMismatch (the chain does not start at the known anchor) and ChainError::HeadMismatch (it does not end at the published head). verify_chain itself returns the same three variants as before.

Step. Add the two arms, or a _ => arm that refuses the chain. AuditError and AuditRecord are unchanged, and so are stored records and hashes.

Rust: Condition::TimeBetween and Condition::WeekdayIn have a tz field#

Before.

Rust
let c = Condition::TimeBetween { from: "09:00".into(), until: "18:00".into() };
if let Condition::WeekdayIn { days } = &cond { .. }

After. Both variants carry tz: Option<String>:

Rust
let c = Condition::TimeBetween { from: "09:00".into(), until: "18:00".into(), tz: None };
if let Condition::WeekdayIn { days, .. } = &cond { .. }

Step. Add tz: None where you build the variants and .. where you match them. The constructors Condition::time_between and Condition::weekday_in are unchanged, so prefer them, and .in_tz("America/Sao_Paulo") sets a zone. The JSON is unchanged: a condition without tz serializes exactly as before.

Rust: new variants in AuditAction and AuditOutcome#

Before. AuditAction ended at ExclusiveExpire and AuditOutcome at Denied, and an exhaustive match on them compiled.

After. The approval flow adds AuditAction::MutationPropose, MutationApprove, MutationReject and MutationExpire, and AuditOutcome::Pending.

Rust
match record.action {
    // ... the arms you had
    AuditAction::MutationPropose => "change proposed",
    AuditAction::MutationApprove => "change approved",
    AuditAction::MutationReject => "change refused by an approver",
    AuditAction::MutationExpire => "pending change expired",
}

Step. Add the four action arms and the Pending outcome arm, or a _ => arm. Nothing changes for code that never calls the approval flow: only Approvals writes these values. In the JSON they are mutation_propose, mutation_approve, mutation_reject, mutation_expire and pending. If a log consumer, such as a SIEM mapping or a schema, accepts a closed list of action and outcome values, add them before you turn the flow on.

Rust: AuditRecord has a pending field#

Before. AuditRecord { at, level, actor, .., decision, full_grant, .. } listed every field.

After. There is one more field, pending: Option<PendingRef>: the request of an approval-flow record, from the standard level up.

Step. Add pending: None where you build the struct with a literal, and .. where you destructure it. Records you already stored deserialize and hash as before. The field is left out of the canonical form when unset, so the hash chain and the test vector do not change.

Policies that use tz export "schema": 3#

Before. DSL_SCHEMA was 2.

After. DSL_SCHEMA is 3. A policy with no tz still exports the JSON it did before. One that uses tz exports its canonical JSON with "schema": 3. Policy::from_json accepts documents with or without schema and refuses one above 3.

Step. Only if you read policy JSON with another reader, such as a service or a tool on an older version: upgrade it before you start writing tz. A reader of schema 2 refuses the document on purpose rather than reading the window in UTC. An unknown zone name is now a validation error when the policy loads, so fix the name.

The tz default feature adds the time zone database#

Before. strig had audit as its only default feature.

After. default = ["audit", "tz"]. The tz feature brings chrono-tz: about 0.9 MB more in the .wasm (2.70 MB to 3.58 MB, 657 KB to 785 KB gzipped).

Step. If the size matters and you never use tz, set default-features = false, features = ["audit"]. A tz in a policy is then refused at load.

npm: one package per platform#

Before. @the-hades-organization/strig bundled the five native modules, about 24 MB unpacked.

After. Each platform has its own package, @the-hades-organization/strig-<platform>, installed as an optional dependency. A typical install is about 8 MB. The loader resolves the platform package, then a local build, then the wasm backend. Linux with musl is served by wasm, and STRIG_BACKEND=native throws a clear error when there is no native module.

Step. Nothing for most installs. Do not install with --omit=optional or --no-optional if you want the native backend, or set STRIG_BACKEND=wasm on purpose. A Docker image on Alpine runs on wasm: see the numbers in Benchmarks. If you vendored node_modules by platform or copied files out of the package, point them at the platform package.

strig-inspect --tab and terminal text are in English#

Before. strig-inspect --tab avaliacao|matriz|auditoria, with terminal output such as NEGADO.

After. strig-inspect --tab evaluation|matrix|audit, and the output is in English (DENIED). The example scenario in examples/scenario.json uses ben, cara, visitor and invoice-7. There is no locale selection yet.

Step. Change --tab in scripts and shortcuts, and any script that matches the old text.

New, no action#

Mutation::kind() and MutationKind (add, remove, assign_role, revoke_role), strig::pending (Approvals, ApprovalPolicy, PendingStore, MemoryPendingStore) and the JS /approvals subpath are additions. A Governance that nobody wraps in Approvals behaves as before, and a kind with no approval rule applies at once. The JSON store gains an optional pending list: a file without it reads as before and the store version stays 1. If several processes or versions share one store file, upgrade all of them before the first request is proposed. The other new pieces, the audit fail mode, the sink in JS, the route table, the /store and /testing subpaths, strig-types and the JS callbacks, are additive too.

0.6.0: Themis becomes Strig#

BeforeAfter
themis-auth (library themis)strig (library strig)
themis-sync, -redis, -postgres, -axum, -macros, -server, -inspectstrig-sync, -redis, -postgres, -axum, -macros, -server, -inspect
npm themis-authnpm @the-hades-organization/strig (since 0.6.1)
use themis::...use strig::...
*.themis policy files*.strig
THEMIS_* environment variablesSTRIG_*

Step. Rename the dependencies in Cargo.toml and package.json, the use paths, the policy file extension and the environment variables. Behaviour is the same.

0.5.0: needs becomes depends_on#

The Rules and Actors syntaxes write depends_on <ids> on a permission line where they wrote needs <ids>. needs is now an error with the hint write: depends_on <ids>. Replace it in existing policy files, in the same position on the line. The JSON is unchanged. Blocks was already depends_on.