From 9c0ffefdb8a995c772ff9bd5e30e8ba45d00fba0 Mon Sep 17 00:00:00 2001 From: Jason Williscroft Date: Thu, 17 Oct 2024 11:27:41 +0800 Subject: [PATCH] chore: release v0.1.3 --- CHANGELOG.md | 7 +++++ docs/assets/search.js | 2 +- docs/documents/CHANGELOG.html | 11 +++++-- .../controlled_proxy.controlledProxy.html | 2 +- docs/index.html | 30 +++++++++++++++++++ ...ntrolled_proxy.ControlledProxyOptions.html | 8 ++--- docs/modules/controlled_proxy.html | 2 +- .../controlled_proxy.ControlledPartial.html | 2 +- ...ontrolled_proxy.DisabledMemberHandler.html | 2 +- .../controlled_proxy.controlProp.html | 2 +- ...olled_proxy.disabledMemberHandlerProp.html | 2 +- package-lock.json | 4 +-- package.json | 2 +- 13 files changed, 60 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac69bc2..0b987b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [0.1.3](https://github.com/karmaniverous/controlled-proxy/compare/0.1.2...0.1.3) + +- updated readme [`d7807b3`](https://github.com/karmaniverous/controlled-proxy/commit/d7807b3a489e1d869f82fb28cb87bd53867c22a3) + #### [0.1.2](https://github.com/karmaniverous/controlled-proxy/compare/0.1.1...0.1.2) +> 17 October 2024 + +- chore: release v0.1.2 [`817c9dd`](https://github.com/karmaniverous/controlled-proxy/commit/817c9dd7a84178c84c397d20f30037c80b8770de) - updated readme [`8da225a`](https://github.com/karmaniverous/controlled-proxy/commit/8da225a79eaa2f5ede18ddf563e32ee7c0ea9ec4) - added images [`413d9ba`](https://github.com/karmaniverous/controlled-proxy/commit/413d9ba6790d42eda00b33d1ecbf438c43d446ac) diff --git a/docs/assets/search.js b/docs/assets/search.js index b6f5fd1..1581619 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data: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SlxJ7foS6cPN51hCQRug1JXD2lGjra1B9e5FtKRcqZ7ptzDwRBKb0a/RZC2mRvz6gLP7xBd21Uw98sUX8G4kqErwMEDXZyKGNA409boUQF9YnVtcWybt6qEB+E3D4tuKW/AmuWb1b5xdU4nptd/2aqzx5XxqF/6aTgffgrXxFvsdCGtLcpCsIIQTRjebCzGbFNIzEoKSF0deMGS4VJZKoNLTl1pMd4wVhJXbLac6YKzknNpCxAwH9H5ZMnhCtoIKyg1fKuodVuHmeJWbDbWOkqkLTl81LC6BAZLhgtrq7ZU281GK6KlYhRTzTEXmG9KhVnBGBDs6rQAlgzX21JuzFZspFJUKY4J49bQgpRugxljpdGAy9V3E2DJcBmujLOWboUrHdFluRWSOUadUwV21rgCXP6nYt0HlwwnHUW5dUpaa82WCmIoLpRxhklLLaFbUgJdssd16V/HP/UvXvI875+tAODHXWEEJgEY+FhqF3gHeGnDnXp9kg5OQ/a3++o/s/uR1bvo1tnyAAJv8hBhoYKESIXzW2/I2uor5tbtnT3Bu7XVsaV1dena+VFkKm0mD7pad2zdydXziwyZKnDoB1Nm606zOwmSeqJ1/zCpdd25rWfMpvbANwR/rrsKmoJK0XTvxcHJQiCSehB2A8JBUlL8TB/GLeLsmvMeHlqkjoLvVRanb4cNvN70z/6Wse6aQPyntCnY5A5JXVcY6g55nTsc97M3HiLFK02i7ACATCnuA3ety2XP3d1Nt3PgBNg8WsZ3O3ggs/4lzzSmwPPKO57BlwRxb4HZgzOZip10aY2kFM51f4E3f4KRCmEfgWv332YRkaQujG4AHcv5CXjqxC0ts/PJfoZxYvWTsXMHCtmUR6dpeLsqOlLPmW5g2P0ZbvJ0SqD3rP7Lzs3OBVbn4C8VfMp35xzyY/7zpergxV6q5kvQ9YqyY3V0+6p22fPL6/fv/wUr+ZyTzj8AAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACrVbS5PjthH+L/QlB1qD92NuLidlpyqJfcplamoLIqERY4lUUdTsbqb2v6dAABSb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PRAYUa+tCAAA="; \ No newline at end of file diff --git a/docs/documents/CHANGELOG.html b/docs/documents/CHANGELOG.html index 09c71fa..ae28a9e 100644 --- a/docs/documents/CHANGELOG.html +++ b/docs/documents/CHANGELOG.html @@ -1,6 +1,13 @@ CHANGELOG | @karmaniverous/controlled-proxy

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

- -
+
diff --git a/docs/functions/controlled_proxy.controlledProxy.html b/docs/functions/controlled_proxy.controlledProxy.html index 09b585f..2825e5b 100644 --- a/docs/functions/controlled_proxy.controlledProxy.html +++ b/docs/functions/controlled_proxy.controlledProxy.html @@ -2,4 +2,4 @@

See the README for usage examples.

+
diff --git a/docs/index.html b/docs/index.html index 6d9bc81..9a5b129 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,5 +1,35 @@ @karmaniverous/controlled-proxy

@karmaniverous/controlled-proxy

controlled-proxy

controlled-proxy

controlledProxy allows the behavior of any object to be modified & controlled non-destructively at runtime.

+

The developer can:

+
    +
  • +

    Alter the proxy's endpoint controls at runtime.

    +
  • +
  • +

    Specify a context-aware handler for disabled endpoints, also at runtime.

    +
  • +
  • +

    Create multiple proxies of an underlying object, each controlled differently.

    +
  • +
  • +

    Inject proxies into dependent code & control them from the outside.

    +
  • +
+

Easy use case:

+
    +
  • +

    You have a utility library with extensive logging.

    +
  • +
  • +

    You consume that library from an application that uses a custom logger like winston.

    +
  • +
  • +

    You want your utility library also to log to winston.

    +
  • +
  • +

    You normally want debug logging from the utility library disabled, even when it is enabed in the outer application, but you want to enable it selectively to help debug the outer app.

    +
  • +
npm install @karmaniverous/controlled-proxy
 
diff --git a/docs/interfaces/controlled_proxy.ControlledProxyOptions.html b/docs/interfaces/controlled_proxy.ControlledProxyOptions.html index b5e2b5f..6e973ec 100644 --- a/docs/interfaces/controlled_proxy.ControlledProxyOptions.html +++ b/docs/interfaces/controlled_proxy.ControlledProxyOptions.html @@ -2,10 +2,10 @@

Type parameters will be inferred from the option values. It should not be necessary to provide them explicitly.

interface ControlledProxyOptions<Properties, Target> {
    defaultControls?: Record<Properties, boolean>;
    defaultDisabledMemberHandler?: DisabledMemberHandler<Properties, Target>;
    target: Target;
}

Type Parameters

  • Properties extends PropertyKey

    Union representing property keys of the controlled properties.

  • Target extends ControlledPartial<Properties>

    The target object type. Must have all keys in Properties.

    -

Properties

Properties

defaultControls?: Record<Properties, boolean>

An object containing the default control flags for each controlled property. This object will be rendered as the [controlProp] property of the proxy object.

-
defaultDisabledMemberHandler?: DisabledMemberHandler<Properties, Target>

The default handler function for disabled controlled properties. Defaults to () => undefined. See the DisabledMemberHandler type for more information.

-
target: Target

The target object to proxy.

-
+
defaultDisabledMemberHandler?: DisabledMemberHandler<Properties, Target>

The default handler function for disabled controlled properties. Defaults to () => undefined. See the DisabledMemberHandler type for more information.

+
target: Target

The target object to proxy.

+
diff --git a/docs/modules/controlled_proxy.html b/docs/modules/controlled_proxy.html index 0b20c82..7544553 100644 --- a/docs/modules/controlled_proxy.html +++ b/docs/modules/controlled_proxy.html @@ -1,4 +1,4 @@ -controlled-proxy | @karmaniverous/controlled-proxy

Index

Interfaces

ControlledProxyOptions +controlled-proxy | @karmaniverous/controlled-proxy

Index

Interfaces

Type Aliases

Variables

controlProp diff --git a/docs/types/controlled_proxy.ControlledPartial.html b/docs/types/controlled_proxy.ControlledPartial.html index 2882926..f2fda22 100644 --- a/docs/types/controlled_proxy.ControlledPartial.html +++ b/docs/types/controlled_proxy.ControlledPartial.html @@ -1,3 +1,3 @@ ControlledPartial | @karmaniverous/controlled-proxy
ControlledPartial<Properties>: Record<Properties, unknown>

Template type representing the controlled properties of a proxy object.

Type Parameters

  • Properties extends PropertyKey

    The property keys of the controlled properties.

    -
+
diff --git a/docs/types/controlled_proxy.DisabledMemberHandler.html b/docs/types/controlled_proxy.DisabledMemberHandler.html index 9a445c5..6d1c369 100644 --- a/docs/types/controlled_proxy.DisabledMemberHandler.html +++ b/docs/types/controlled_proxy.DisabledMemberHandler.html @@ -12,4 +12,4 @@

When not provided, this function defaults to () => undefined.

If the underlying member is a function, the handler fuction will be called with appropriate target, p, and receiver values, along with any provided args.

If the underlying member is not a function, the handler function will be called with appropriate target, p, and receiver values, and no args and its result returned.

-
+
diff --git a/docs/variables/controlled_proxy.controlProp.html b/docs/variables/controlled_proxy.controlProp.html index 45be1e2..764e2e5 100644 --- a/docs/variables/controlled_proxy.controlProp.html +++ b/docs/variables/controlled_proxy.controlProp.html @@ -1,2 +1,2 @@ controlProp | @karmaniverous/controlled-proxy
controlProp: typeof controlProp = ...

Symbol representing the control property of a controlled proxy object.

-
+
diff --git a/docs/variables/controlled_proxy.disabledMemberHandlerProp.html b/docs/variables/controlled_proxy.disabledMemberHandlerProp.html index 332b0f4..0854512 100644 --- a/docs/variables/controlled_proxy.disabledMemberHandlerProp.html +++ b/docs/variables/controlled_proxy.disabledMemberHandlerProp.html @@ -1,2 +1,2 @@ disabledMemberHandlerProp | @karmaniverous/controlled-proxy
disabledMemberHandlerProp: typeof disabledMemberHandlerProp = ...

Symbol representing the disabled member handler property of a controlled proxy object.

-
+
diff --git a/package-lock.json b/package-lock.json index 6db4373..2a1c5b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@karmaniverous/controlled-proxy", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@karmaniverous/controlled-proxy", - "version": "0.1.2", + "version": "0.1.3", "license": "BSD-3-Clause", "devDependencies": { "@dotenvx/dotenvx": "^1.19.3", diff --git a/package.json b/package.json index 21d936a..17f1a5e 100644 --- a/package.json +++ b/package.json @@ -119,5 +119,5 @@ }, "type": "module", "types": "dist/index.d.ts", - "version": "0.1.2" + "version": "0.1.3" }