@fedify/fedify 1.6.0-dev.778 → 1.6.0-dev.795

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.
Files changed (57) hide show
  1. package/CHANGES.md +29 -0
  2. package/CONTRIBUTING.md +7 -0
  3. package/FEDERATION.md +6 -2
  4. package/README.md +1 -1
  5. package/SPONSORS.md +1 -1
  6. package/esm/deno.js +3 -1
  7. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +55 -0
  8. package/esm/federation/middleware.js +26 -1
  9. package/esm/federation/send.js +6 -7
  10. package/esm/runtime/docloader.js +4 -16
  11. package/esm/sig/http.js +528 -9
  12. package/esm/sig/key.js +4 -1
  13. package/esm/testing/fixtures/remote.domain/users/bob +20 -0
  14. package/esm/vocab/vocab.js +308 -176
  15. package/package.json +2 -1
  16. package/types/deno.d.ts +2 -0
  17. package/types/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +34 -0
  18. package/types/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +1 -0
  19. package/types/federation/middleware.d.ts +21 -3
  20. package/types/federation/middleware.d.ts.map +1 -1
  21. package/types/federation/send.d.ts +6 -0
  22. package/types/federation/send.d.ts.map +1 -1
  23. package/types/runtime/docloader.d.ts +17 -1
  24. package/types/runtime/docloader.d.ts.map +1 -1
  25. package/types/sig/http.d.ts +128 -0
  26. package/types/sig/http.d.ts.map +1 -1
  27. package/types/sig/key.d.ts.map +1 -1
  28. package/types/sig/mod.d.ts +1 -1
  29. package/types/sig/mod.d.ts.map +1 -1
  30. package/types/vocab/vocab.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/bytes/1.0.5/copy.js +0 -50
  32. package/esm/deps/jsr.io/@std/bytes/1.0.5/ends_with.js +0 -36
  33. package/esm/deps/jsr.io/@std/bytes/1.0.5/equals.js +0 -82
  34. package/esm/deps/jsr.io/@std/bytes/1.0.5/includes_needle.js +0 -42
  35. package/esm/deps/jsr.io/@std/bytes/1.0.5/index_of_needle.js +0 -68
  36. package/esm/deps/jsr.io/@std/bytes/1.0.5/last_index_of_needle.js +0 -65
  37. package/esm/deps/jsr.io/@std/bytes/1.0.5/mod.js +0 -34
  38. package/esm/deps/jsr.io/@std/bytes/1.0.5/repeat.js +0 -43
  39. package/esm/deps/jsr.io/@std/bytes/1.0.5/starts_with.js +0 -34
  40. package/types/deps/jsr.io/@std/bytes/1.0.5/copy.d.ts +0 -41
  41. package/types/deps/jsr.io/@std/bytes/1.0.5/copy.d.ts.map +0 -1
  42. package/types/deps/jsr.io/@std/bytes/1.0.5/ends_with.d.ts +0 -24
  43. package/types/deps/jsr.io/@std/bytes/1.0.5/ends_with.d.ts.map +0 -1
  44. package/types/deps/jsr.io/@std/bytes/1.0.5/equals.d.ts +0 -22
  45. package/types/deps/jsr.io/@std/bytes/1.0.5/equals.d.ts.map +0 -1
  46. package/types/deps/jsr.io/@std/bytes/1.0.5/includes_needle.d.ts +0 -38
  47. package/types/deps/jsr.io/@std/bytes/1.0.5/includes_needle.d.ts.map +0 -1
  48. package/types/deps/jsr.io/@std/bytes/1.0.5/index_of_needle.d.ts +0 -45
  49. package/types/deps/jsr.io/@std/bytes/1.0.5/index_of_needle.d.ts.map +0 -1
  50. package/types/deps/jsr.io/@std/bytes/1.0.5/last_index_of_needle.d.ts +0 -42
  51. package/types/deps/jsr.io/@std/bytes/1.0.5/last_index_of_needle.d.ts.map +0 -1
  52. package/types/deps/jsr.io/@std/bytes/1.0.5/mod.d.ts +0 -33
  53. package/types/deps/jsr.io/@std/bytes/1.0.5/mod.d.ts.map +0 -1
  54. package/types/deps/jsr.io/@std/bytes/1.0.5/repeat.d.ts +0 -33
  55. package/types/deps/jsr.io/@std/bytes/1.0.5/repeat.d.ts.map +0 -1
  56. package/types/deps/jsr.io/@std/bytes/1.0.5/starts_with.d.ts +0 -24
  57. package/types/deps/jsr.io/@std/bytes/1.0.5/starts_with.d.ts.map +0 -1
@@ -1,42 +0,0 @@
1
- /**
2
- * Returns the index of the last occurrence of the needle array in the source
3
- * array, or -1 if it is not present.
4
- *
5
- * The complexity of this function is `O(source.length * needle.length)`.
6
- *
7
- * @param source Source array to check.
8
- * @param needle Needle array to check for.
9
- * @param start Start index in the source array to begin the search. Defaults to
10
- * `source.length - 1`.
11
- * @returns Index of the last occurrence of the needle array in the source
12
- * array, or -1 if it is not present.
13
- *
14
- * @example Basic usage
15
- * ```ts
16
- * import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
17
- * import { assertEquals } from "@std/assert";
18
- *
19
- * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
20
- * const needle = new Uint8Array([1, 2]);
21
- * const notNeedle = new Uint8Array([5, 0]);
22
- *
23
- * assertEquals(lastIndexOfNeedle(source, needle), 5);
24
- * assertEquals(lastIndexOfNeedle(source, notNeedle), -1);
25
- * ```
26
- *
27
- * @example Start index
28
- * ```ts
29
- * import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
30
- * import { assertEquals } from "@std/assert";
31
- *
32
- * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
33
- * const needle = new Uint8Array([1, 2]);
34
- *
35
- * assertEquals(lastIndexOfNeedle(source, needle, 2), 1);
36
- * assertEquals(lastIndexOfNeedle(source, needle, 6), 5);
37
- * ```
38
- * Defining a start index will begin the search at the specified index in the
39
- * source array.
40
- */
41
- export declare function lastIndexOfNeedle(source: Uint8Array, needle: Uint8Array, start?: number): number;
42
- //# sourceMappingURL=last_index_of_needle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/last_index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,MAA0B,GAChC,MAAM,CAuBR"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Helper functions for working with
3
- * {@linkcode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array | Uint8Array}
4
- * byte slices.
5
- *
6
- * ```ts
7
- * import { concat, indexOfNeedle, endsWith } from "@std/bytes";
8
- * import { assertEquals } from "@std/assert";
9
- *
10
- * const a = new Uint8Array([0, 1, 2]);
11
- * const b = new Uint8Array([3, 4, 5]);
12
- *
13
- * const c = concat([a, b]);
14
- *
15
- * assertEquals(c, new Uint8Array([0, 1, 2, 3, 4, 5]));
16
- *
17
- * assertEquals(indexOfNeedle(c, new Uint8Array([2, 3])), 2);
18
- *
19
- * assertEquals(endsWith(c, b), true);
20
- * ```
21
- *
22
- * @module
23
- */
24
- export * from "./concat.js";
25
- export * from "./copy.js";
26
- export * from "./ends_with.js";
27
- export * from "./equals.js";
28
- export * from "./includes_needle.js";
29
- export * from "./index_of_needle.js";
30
- export * from "./last_index_of_needle.js";
31
- export * from "./repeat.js";
32
- export * from "./starts_with.js";
33
- //# sourceMappingURL=mod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
@@ -1,33 +0,0 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
- /**
4
- * Returns a new byte slice composed of `count` repetitions of the `source`
5
- * array.
6
- *
7
- * @param source Source array to repeat.
8
- * @param count Number of times to repeat the source array.
9
- * @returns A new byte slice composed of `count` repetitions of the `source`
10
- * array.
11
- *
12
- * @example Basic usage
13
- * ```ts
14
- * import { repeat } from "@std/bytes/repeat";
15
- * import { assertEquals } from "@std/assert";
16
- *
17
- * const source = new Uint8Array([0, 1, 2]);
18
- *
19
- * assertEquals(repeat(source, 3), new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 2]));
20
- * ```
21
- *
22
- * @example Zero count
23
- * ```ts
24
- * import { repeat } from "@std/bytes/repeat";
25
- * import { assertEquals } from "@std/assert";
26
- *
27
- * const source = new Uint8Array([0, 1, 2]);
28
- *
29
- * assertEquals(repeat(source, 0), new Uint8Array());
30
- * ```
31
- */
32
- export declare function repeat(source: Uint8Array, count: number): Uint8Array_;
33
- //# sourceMappingURL=repeat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/repeat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAarE"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Returns `true` if the prefix array appears at the start of the source array,
3
- * `false` otherwise.
4
- *
5
- * The complexity of this function is `O(prefix.length)`.
6
- *
7
- * @param source Source array to check.
8
- * @param prefix Prefix array to check for.
9
- * @returns `true` if the prefix array appears at the start of the source array,
10
- * `false` otherwise.
11
- *
12
- * @example Basic usage
13
- * ```ts
14
- * import { startsWith } from "@std/bytes/starts-with";
15
- * import { assertEquals } from "@std/assert";
16
- *
17
- * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
18
- * const prefix = new Uint8Array([0, 1, 2]);
19
- *
20
- * assertEquals(startsWith(source, prefix), true);
21
- * ```
22
- */
23
- export declare function startsWith(source: Uint8Array, prefix: Uint8Array): boolean;
24
- //# sourceMappingURL=starts_with.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/starts_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAS1E"}