@ai-matrx/associations 0.14.90 → 0.14.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
1
  # Changelog — @ai-matrx/associations
2
2
 
3
- ## 0.14.90
3
+ ## 0.14.91
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/associations/src`.
7
7
 
8
+ ## 0.14.90
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 1eae2f04b4 3f2e8b4145 -- apps/shared/associations/src`
13
+
14
+ Changed shipped source files (2):
15
+ - `apps/shared/associations/src/association-types.generated.ts`
16
+ - `apps/shared/associations/src/entity-types.generated.ts`
17
+
8
18
  ## 0.14.89
9
19
 
10
20
  **A kind's plural is real English.** The default plural of a registry label now comes from the new `pluralizeLabel` (exported from core): "Social post analysis" becomes "Social post analyses", "Private contact research" stays as is, and "Code Repository" becomes "Code Repositories". Before this, `label + "s"` printed "analysiss" and "researchs" on the Resources grid. No consumer action required.
@@ -360,6 +370,8 @@ No source changes intended and no consumer action required.
360
370
  ## 0.14.48
361
371
  ### Unreleased
362
372
 
373
+ - **A signed-out visitor is a state, not a fault.** `mapPgError` answers the identity port's `NotAuthenticatedError` with `unauthorized` and no longer sends it to the error sink, so a guest's first send no longer prints `[associations] internal: Not authenticated` four times. Consumer action: none.
374
+
363
375
  - `web_brand` joins `ASSOCIATION_TARGET_TYPES` (`AssociationTargetType`): a brand's people are filed on it (`party -> web_brand`, role `owns` | `key_person`). `web_brand` was already a registry token. Consumer: matrx-frontend `features/marketing/smart-add/relations.ts`.
364
376
 
365
377
  ## 0.14.47
@@ -2751,6 +2751,8 @@ var SIGNED_OUT_LEAD = "You're signed out";
2751
2751
  var SIGNED_OUT_MESSAGE = `${SIGNED_OUT_LEAD}. Sign in again \u2014 your text is kept here.`;
2752
2752
  function createRpcResultHelpers(errorSink, sessionAttached) {
2753
2753
  function mapPgError(e) {
2754
+ if (e?.name === "NotAuthenticatedError")
2755
+ return { code: "unauthorized", message: SIGNED_OUT_MESSAGE };
2754
2756
  const { pgCode, pgMessage, pgHint } = readPgFields(e);
2755
2757
  if (pgCode === "PGRST202") {
2756
2758
  const message = "demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 \u2014 function not found). This package DEMANDS the platform " + `schema (README \xA7 The demanded schema). ${pgMessage ?? ""}`.trim();