@chronicle.app/google-reader 0.4.0 → 0.5.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/README.md CHANGED
@@ -29,7 +29,7 @@ The archive owner's ID comes from `user_id` in `data/user-info.json`; `user_name
29
29
  ## Output
30
30
 
31
31
  - `read` → `ReadAction`
32
- - `broadcast` → `PublishAction`
32
+ - `broadcast` → `ShareAction`: Reader's Share passes along an article someone else wrote
33
33
  - `starred` → `LikeAction`
34
34
  - Owner annotations → `AnnotateAction` with a `Comment` result
35
35
 
@@ -27,20 +27,20 @@ export default class GoogleReaderTransformer extends ChronicleTransformer {
27
27
  case 'ReadAction':
28
28
  actions.push({
29
29
  '@type': 'ReadAction',
30
- '@key': ['@type', 'source', 'sourceId', 'agent.sourceId'],
30
+ // Keyed by the article it's about, and whose it is.
31
+ '@key': ['@type', 'source', 'object.sourceId', 'agent.sourceId'],
31
32
  source: 'google-reader',
32
- sourceId: item.id,
33
33
  timestamp,
34
34
  agent: user,
35
35
  object: article,
36
36
  });
37
37
  break;
38
- case 'PublishAction':
38
+ // Reader's Share passes along an article someone else wrote.
39
+ case 'ShareAction':
39
40
  actions.push({
40
- '@type': 'PublishAction',
41
- '@key': ['@type', 'source', 'sourceId', 'agent.sourceId'],
41
+ '@type': 'ShareAction',
42
+ '@key': ['@type', 'source', 'object.sourceId', 'agent.sourceId'],
42
43
  source: 'google-reader',
43
- sourceId: item.id,
44
44
  timestamp,
45
45
  agent: user,
46
46
  object: article,
@@ -49,9 +49,9 @@ export default class GoogleReaderTransformer extends ChronicleTransformer {
49
49
  case 'LikeAction':
50
50
  actions.push({
51
51
  '@type': 'LikeAction',
52
- '@key': ['@type', 'source', 'sourceId', 'agent.sourceId'],
52
+ // Keyed by the article it's about, and whose it is.
53
+ '@key': ['@type', 'source', 'object.sourceId', 'agent.sourceId'],
53
54
  source: 'google-reader',
54
- sourceId: item.id,
55
55
  timestamp,
56
56
  agent: user,
57
57
  object: article,
@@ -136,7 +136,7 @@ export default class GoogleReaderTransformer extends ChronicleTransformer {
136
136
  actions.push('ReadAction');
137
137
  }
138
138
  if (category === `user/${userId}/state/com.google/broadcast`) {
139
- actions.push('PublishAction');
139
+ actions.push('ShareAction');
140
140
  }
141
141
  if (category === `user/${userId}/state/com.google/starred`) {
142
142
  actions.push('LikeAction');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chronicle.app/google-reader",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "type": "module",
23
23
  "description": "Import personal actions from Google Reader archive streams",
24
24
  "devDependencies": {
25
- "@chronicle.app/etl": "0.4.0",
26
- "@chronicle.app/schema": "0.4.0",
27
- "@chronicle.app/tsconfig": "0.4.0",
25
+ "@chronicle.app/etl": "0.5.0",
26
+ "@chronicle.app/schema": "0.5.0",
27
+ "@chronicle.app/tsconfig": "0.5.0",
28
28
  "@types/node": "^22.10.1",
29
29
  "typescript": "^5.7.2"
30
30
  },
@@ -39,7 +39,7 @@
39
39
  "registry": "https://registry.npmjs.org/"
40
40
  },
41
41
  "dependencies": {
42
- "@chronicle.app/google": "0.4.0",
42
+ "@chronicle.app/google": "0.5.0",
43
43
  "zod": "^3.24.1"
44
44
  },
45
45
  "peerDependencies": {