@fedify/fedify 0.10.0-dev.200 → 0.10.0-dev.202

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/CHANGES.md CHANGED
@@ -123,6 +123,15 @@ To be released.
123
123
  [x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
124
124
 
125
125
 
126
+ Version 0.9.1
127
+ -------------
128
+
129
+ Released on June 13, 2024.
130
+
131
+ - Fixed a bug of Activity Vocabulary API that `clone()` method of Vocabulary
132
+ classes had not cloned the `id` property from the source object.
133
+
134
+
126
135
  Version 0.9.0
127
136
  -------------
128
137
 
@@ -288,7 +288,7 @@ export class Object {
288
288
  */
289
289
  clone(values = {}, options = {}) {
290
290
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
291
- const clone = new this.constructor({ id: values.id }, options);
291
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
292
292
  clone.#_49BipA5dq9eoH8LX8xdsVumveTca = this.#_49BipA5dq9eoH8LX8xdsVumveTca;
293
293
  if ("attachments" in values && values.attachments != null) {
294
294
  clone.#_49BipA5dq9eoH8LX8xdsVumveTca = values.attachments;
@@ -3625,7 +3625,7 @@ export class PropertyValue {
3625
3625
  */
3626
3626
  clone(values = {}, options = {}) {
3627
3627
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
3628
- const clone = new this.constructor({ id: values.id }, options);
3628
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
3629
3629
  clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav;
3630
3630
  if ("name" in values && values.name != null) {
3631
3631
  clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav = [values.name];
@@ -3867,7 +3867,7 @@ export class DataIntegrityProof {
3867
3867
  */
3868
3868
  clone(values = {}, options = {}) {
3869
3869
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
3870
- const clone = new this.constructor({ id: values.id }, options);
3870
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
3871
3871
  clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5 = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5;
3872
3872
  if ("cryptosuite" in values && values.cryptosuite != null) {
3873
3873
  clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5 = [values.cryptosuite];
@@ -4235,7 +4235,7 @@ export class CryptographicKey {
4235
4235
  */
4236
4236
  clone(values = {}, options = {}) {
4237
4237
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
4238
- const clone = new this.constructor({ id: values.id }, options);
4238
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
4239
4239
  clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2 = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2;
4240
4240
  if ("owner" in values && values.owner != null) {
4241
4241
  clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2 = [values.owner];
@@ -4543,7 +4543,7 @@ export class Multikey {
4543
4543
  */
4544
4544
  clone(values = {}, options = {}) {
4545
4545
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
4546
- const clone = new this.constructor({ id: values.id }, options);
4546
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
4547
4547
  clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN;
4548
4548
  if ("controller" in values && values.controller != null) {
4549
4549
  clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN = [values.controller];
@@ -9103,7 +9103,7 @@ export class Endpoints {
9103
9103
  */
9104
9104
  clone(values = {}, options = {}) {
9105
9105
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
9106
- const clone = new this.constructor({ id: values.id }, options);
9106
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
9107
9107
  clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR;
9108
9108
  if ("proxyUrl" in values && values.proxyUrl != null) {
9109
9109
  clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR = [values.proxyUrl];
@@ -11120,7 +11120,7 @@ export class Link {
11120
11120
  */
11121
11121
  clone(values = {}, options = {}) {
11122
11122
  // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
11123
- const clone = new this.constructor({ id: values.id }, options);
11123
+ const clone = new this.constructor({ id: values.id ?? this.id }, options);
11124
11124
  clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7 = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7;
11125
11125
  if ("href" in values && values.href != null) {
11126
11126
  clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7 = [values.href];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.10.0-dev.200+e581ce37",
3
+ "version": "0.10.0-dev.202+52d750a0",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",