@seedprotocol/feed 0.5.1 → 0.5.2

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.
@@ -1,13 +1,2 @@
1
- /**
2
- * Maps list-relation storage / wire names to schema-facing plural keys (e.g. `authorIdentityIds` → `authors`).
3
- * Non-matching keys are returned unchanged.
4
- */
5
- export declare function publicListRelationPropertyKey(propertyKey: string): string;
6
- /**
7
- * Removes keys that are storage aliases for the same list relation as `publicKey`
8
- * (e.g. delete `authorIdentityIds` when `authors` is the canonical field).
9
- */
10
- export declare function stripListRelationStorageAliasesForPublicKey(item: Record<string, unknown>, publicKey: string): void;
11
- /** If value is a JSON array string from legacy feed assembly, parse to string[]. */
12
- export declare function tryCoerceJsonStringArray(value: unknown): unknown;
1
+ export { publicListRelationPropertyKey, stripListRelationStorageAliasesForPublicKey, tryCoerceJsonStringArray, } from '@seedprotocol/query';
13
2
  //# sourceMappingURL=listRelationKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listRelationKey.d.ts","sourceRoot":"","sources":["../src/listRelationKey.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAgBzE;AAED;;;GAGG;AACH,wBAAgB,2CAA2C,CACzD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,GAChB,IAAI,CAON;AAED,oFAAoF;AACpF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYhE"}
1
+ {"version":3,"file":"listRelationKey.d.ts","sourceRoot":"","sources":["../src/listRelationKey.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,2CAA2C,EAC3C,wBAAwB,GACzB,MAAM,qBAAqB,CAAA"}
@@ -1,25 +1,3 @@
1
- export type EasPropertyMetadataForFeed = {
2
- name: string;
3
- value: string | string[];
4
- type?: string;
5
- };
6
- export type ParseEasPropertyMetadataForFeedResult = {
7
- ok: true;
8
- metadata: EasPropertyMetadataForFeed;
9
- } | {
10
- ok: false;
11
- reason: 'empty';
12
- } | {
13
- ok: false;
14
- reason: 'shape';
15
- } | {
16
- ok: false;
17
- reason: 'parse';
18
- error: unknown;
19
- };
20
- /**
21
- * Parse EAS property `decodedDataJson` for feed assembly.
22
- * Matches SDK guards in syncDbWithEas / saveDataToDb (empty trim, parse, array + [0].value).
23
- */
24
- export declare function parseEasPropertyMetadataForFeed(decodedDataJson: string | undefined | null): ParseEasPropertyMetadataForFeedResult;
1
+ export { parseEasPropertyMetadataForFeed, parseEasPropertyMetadata, } from '@seedprotocol/query';
2
+ export type { EasPropertyMetadataForFeed, ParseEasPropertyMetadataForFeedResult, EasPropertyMetadata, ParseEasPropertyMetadataResult, } from '@seedprotocol/query';
25
3
  //# sourceMappingURL=parseEasPropertyMetadataForFeed.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseEasPropertyMetadataForFeed.d.ts","sourceRoot":"","sources":["../src/parseEasPropertyMetadataForFeed.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAC7C;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,0BAA0B,CAAA;CAAE,GAClD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GACzC,qCAAqC,CAoBvC"}
1
+ {"version":3,"file":"parseEasPropertyMetadataForFeed.d.ts","sourceRoot":"","sources":["../src/parseEasPropertyMetadataForFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,0BAA0B,EAC1B,qCAAqC,EACrC,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA"}
@@ -1,7 +1,2 @@
1
- /**
2
- * Builds an Arweave URL for a transaction ID (without the /raw segment).
3
- * Returns URLs like https://arweave.net/{transactionId} instead of
4
- * https://arweave.net/raw/{transactionId}.
5
- */
6
- export declare function getArweaveUrlForTransaction(transactionId: string): string;
1
+ export { getArweaveUrlForTransaction } from '@seedprotocol/query';
7
2
  //# sourceMappingURL=arweaveUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arweaveUrl.d.ts","sourceRoot":"","sources":["../../src/utils/arweaveUrl.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEzE"}
1
+ {"version":3,"file":"arweaveUrl.d.ts","sourceRoot":"","sources":["../../src/utils/arweaveUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA"}
@@ -3,10 +3,6 @@
3
3
  * Uses MD5 hash for consistency and performance
4
4
  */
5
5
  export declare function generateETag(value: string): string;
6
- /**
7
- * Generate an ETag for feed data based on schema, format, timestamp, and item count
8
- */
9
- export declare function generateFeedETag(schemaName: string, format: string, lastProcessedTimestamp: number, itemCount: number): string;
10
6
  /**
11
7
  * Generate an ETag for cached feed content
12
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"etag.d.ts","sourceRoot":"","sources":["../../src/utils/etag.ts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F;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC5C,WAAW,EAAE,MAAM,GAClB,OAAO,CAaT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedprotocol/feed",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Feed generation (RSS, Atom, JSON) for Seed Protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,9 @@
25
25
  "prepublishOnly": "bun run build && node ../../scripts/sync-versions.js"
26
26
  },
27
27
  "dependencies": {
28
- "@seedprotocol/arweave": "0.5.1",
29
- "@seedprotocol/eas": "0.5.1",
28
+ "@seedprotocol/arweave": "0.5.2",
29
+ "@seedprotocol/eas": "0.5.2",
30
+ "@seedprotocol/query": "0.5.2",
30
31
  "express": "^5.2.1",
31
32
  "feedsmith": "^2.9.0",
32
33
  "graphql-request": "^7.3.5",