@getbourdon/participants 0.2.4 → 0.3.0

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/LICENSE CHANGED
@@ -39,7 +39,7 @@ Additional Use Grant: You may make production use of the Licensed Work, provided
39
39
 
40
40
  For binding interpretive guidance on using RADLAB LLC products
41
41
  under the Business Source License, please see the LICENSE_FAQ
42
- at https://github.com/getbourdon/bourdon/blob/main/LICENSE_FAQ.md
42
+ at https://gitlab.com/bourdonai/bourdon/-/blob/main/LICENSE_FAQ.md
43
43
  Change Date: Four years from the date the Licensed Work is published.
44
44
  Change License: Apache License, Version 2.0
45
45
 
package/LICENSE_FAQ.md CHANGED
@@ -76,4 +76,4 @@ Email licensing@bourdon.ai with a description of what you're building. RADLAB LL
76
76
  ## Contact
77
77
 
78
78
  Licensing questions: **licensing@bourdon.ai**
79
- General project questions: GitHub issues at [github.com/getbourdon/bourdon/issues](https://github.com/getbourdon/bourdon/issues)
79
+ General project questions: GitLab issues at [gitlab.com/bourdonai/bourdon/-/issues](https://gitlab.com/bourdonai/bourdon/-/issues)
package/dist/index.cjs CHANGED
@@ -1092,6 +1092,16 @@ function mergeEntities(into, other) {
1092
1092
  into.summary = other.summary;
1093
1093
  }
1094
1094
  into.tags = [.../* @__PURE__ */ new Set([...into.tags ?? [], ...other.tags ?? []])];
1095
+ into.aliases = [.../* @__PURE__ */ new Set([...into.aliases ?? [], ...other.aliases ?? []])];
1096
+ if (other.last_touched && (into.last_touched == null || other.last_touched > into.last_touched)) {
1097
+ into.last_touched = other.last_touched;
1098
+ }
1099
+ if (other.valid_from && (into.valid_from == null || other.valid_from < into.valid_from)) {
1100
+ into.valid_from = other.valid_from;
1101
+ }
1102
+ if (other.valid_to && (into.valid_to == null || other.valid_to > into.valid_to)) {
1103
+ into.valid_to = other.valid_to;
1104
+ }
1095
1105
  if (visRank(other.visibility) < visRank(into.visibility)) {
1096
1106
  into.visibility = other.visibility;
1097
1107
  }
@@ -1110,14 +1120,9 @@ function dedupeEntities(sourceLists) {
1110
1120
  byKey.set(
1111
1121
  key,
1112
1122
  (0, import_l52.makeEntity)({
1113
- name: entity.name,
1114
- type: entity.type,
1123
+ ...entity,
1115
1124
  aliases: [...entity.aliases ?? []],
1116
- summary: entity.summary,
1117
- last_touched: entity.last_touched,
1118
- tags: [...entity.tags ?? []],
1119
- visibility: entity.visibility
1120
- // valid_from / valid_to intentionally dropped (oracle behavior).
1125
+ tags: [...entity.tags ?? []]
1121
1126
  })
1122
1127
  );
1123
1128
  }