Skip to content

Releases: freakyfelt/could-could

v3.0.2

09 Sep 18:42
5149b77
Compare
Choose a tag to compare

3.0.2 (2024-09-09)

Bug Fixes

  • deps: bump ajv from 8.16.0 to 8.17.1 (#453) (3e9f8ae)
  • deps: bump json-logic-js from 2.0.2 to 2.0.5 (#452) (5d36bca)
  • deps: bump lru-cache from 10.2.2 to 10.3.0 (#441) (0cba53d)
  • deps: bump lru-cache from 10.3.0 to 10.4.0 (#447) (f1195d6)
  • deps: bump lru-cache from 10.4.0 to 11.0.0 (#450) (0509e0f)
  • deps: bump lru-cache from 11.0.0 to 11.0.1 (#502) (271a404)

v3.0.1

17 Jun 20:05
fc13bac
Compare
Choose a tag to compare

3.0.1 (2024-06-08)

Bug Fixes

v3.0.0

24 May 21:33
60e0e04
Compare
Choose a tag to compare

3.0.0 (2024-05-24)

⚠ BREAKING CHANGES

  • move to ESM; drop Node 16.x support (#393)

Features

v2.1.0

08 Mar 18:09
Compare
Choose a tag to compare

2.1.0 (2023-03-08)

Features

v2.0.0-RC1.1

04 Mar 11:12
b93f019
Compare
Choose a tag to compare
v2.0.0-RC1.1 Pre-release
Pre-release

Full Changelog: v2.0.0-RC1...v2.0.0-RC1.1

chore(workflow): drop the broken build step

v2.0.0-RC1

04 Mar 11:07
2a6f260
Compare
Choose a tag to compare
v2.0.0-RC1 Pre-release
Pre-release

Release candidate for a major simplification of the resolver.

Warning
This is a complete rewrite of the system. I debated adding a compatibility layer; please reach out if this would be useful

New features

  • Simplified policy definition that drops built-in support for resources and environments
    • Please reach out if a compatibility layer is desired for this
  • Allow for pattern matching at the start or end of the action names
  • Evaluate deny and allow policies using native JS instead of JsonLogic
  • Add initial support for adding new policy documents to the store
  • Add caching layers for finding matching policies and compiled evaluators

Migrating

The resolver no longer concerns itself with resource types and environments, meaning implementors will need to create a strategy to load the correct policies into the resolver

{
-  "resourceType": "Kitty",
  // NOTE: actions are now optional
  "actions": ["kitty:pet"],
+  "statement": [
-  "definitions": [
-    {
-     "environment": "production",
-     "policies": [
       {
         "action": "*",
         "effect": "allow",
         "constraint": true
       }
-     ]
-   }
  ]
}

Remaining work

  • Allow for replacing existing policies in the store
  • Allow for dropping policies from the store
  • [minor] Organize policies by rough complexity (e.g. evaluate constraints that are purely false first as they are much faster to evaluate)

v1.0.0

25 Apr 20:26
f967630
Compare
Choose a tag to compare

Initial release of the library