@seed-hypermedia/client 0.0.102 → 0.0.103

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.
@@ -4,10 +4,10 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-TLOQU4IT.mjs";
7
+ } from "./chunk-P2FJTNNQ.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-Z5BSKGOF.mjs";
10
+ import "./chunk-R6OYID6M.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
13
  import "./chunk-SKIKB2TP.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-Z5BSKGOF.mjs";
10
+ } from "./chunk-R6OYID6M.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
@@ -93,7 +93,8 @@ async function followToDocument(client, id) {
93
93
  id,
94
94
  targetId: followed.targetId,
95
95
  document: followed.resource.document,
96
- redirect: first ? { republish: first.republish, target: first.to } : null
96
+ redirect: first ? { republish: first.republish, target: first.to } : null,
97
+ redirects: followed.redirects
97
98
  };
98
99
  }
99
100
  async function resolveEditableDocument(client, id) {
@@ -39,6 +39,8 @@ export type FollowedDocument = {
39
39
  republish: boolean;
40
40
  target: UnpackedHypermediaId;
41
41
  } | null;
42
+ /** Every redirect followed from `id` to `targetId`, in order. */
43
+ redirects: RedirectHop[];
42
44
  };
43
45
  /** The full baseline needed to build a new Change at an address: {@link FollowedDocument} plus DAG state. */
44
46
  export type EditableDocumentBase = FollowedDocument & {
@@ -4,7 +4,7 @@ import {
4
4
  followToDocument,
5
5
  resolveDocumentState,
6
6
  resolveEditableDocument
7
- } from "./chunk-Z5BSKGOF.mjs";
7
+ } from "./chunk-R6OYID6M.mjs";
8
8
  import "./chunk-SKIKB2TP.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {
package/dist/index.mjs CHANGED
@@ -83,7 +83,7 @@ import {
83
83
  documentContainsLinkToChild,
84
84
  documentHasSelfQuery,
85
85
  shouldAutoLinkParent
86
- } from "./chunk-TLOQU4IT.mjs";
86
+ } from "./chunk-P2FJTNNQ.mjs";
87
87
  import {
88
88
  createChange,
89
89
  createChangeOps,
@@ -105,7 +105,7 @@ import {
105
105
  followToDocument,
106
106
  resolveDocumentState,
107
107
  resolveEditableDocument
108
- } from "./chunk-Z5BSKGOF.mjs";
108
+ } from "./chunk-R6OYID6M.mjs";
109
109
  import "./chunk-2MD3FXKB.mjs";
110
110
  import {
111
111
  computeReplaceOps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",