@nstarkman/collaborator-map 20261023.0.0 → 20261028.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  Versions are dates, `YYYYMMDD.0.N`; the four research-kit packages are released together at one
4
4
  version. A breaking change says how to migrate.
5
5
 
6
+ ## 20261028.0.0
7
+
8
+ ### Added
9
+
10
+ - The site's author is on the map beside the co-authors (`config/collaborators.json` now lists the
11
+ author, marked `me: true`), with every one of the author's papers on the author's pins. People
12
+ carry `me`.
13
+
14
+ ## 20261023.0.1
15
+
16
+ ### Fixed
17
+
18
+ - Released with `@nstarkman/data-resolver` 20261023.0.1 (a paper's map: its own co-authors only).
19
+
6
20
  ## 20261023.0.0
7
21
 
8
22
  First release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nstarkman/collaborator-map",
3
- "version": "20261023.0.0",
3
+ "version": "20261028.0.0",
4
4
  "description": "The nstarkman.space collaborator map, drawn from a research store.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "astro": "^7"
26
26
  },
27
27
  "dependencies": {
28
- "@nstarkman/data-resolver": "20261023.0.0"
28
+ "@nstarkman/data-resolver": "20261028.0.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public",
package/src/collabmap.js CHANGED
@@ -20,12 +20,12 @@ import { byType, venueUrl, links, assists, primaryLink, config } from '@nstarkma
20
20
  export { map, project, toXY, KM_PER_UNIT, MAX_DRIFT_MILES, MAX_PIN_DRIFT };
21
21
 
22
22
  /** Papers we co-wrote, and papers of theirs that thank me (`assist`), by the
23
- * author's ORCID. */
23
+ * author's ORCID; under my own ORCID, all of mine. */
24
24
  function papersByAuthor() {
25
25
  const out = new Map();
26
26
  for (const pub of byType('publication')) {
27
27
  for (const a of pub.authors ?? []) {
28
- if (a.me || !a.orcid) continue;
28
+ if (!a.orcid) continue;
29
29
  if (!out.has(a.orcid)) out.set(a.orcid, []);
30
30
  // The publications page carries no per-item anchor, so a paper links to
31
31
  // itself: the journal where it is published, the preprint otherwise, and
@@ -109,7 +109,7 @@ export function collaboratorMap(menteeList = mentees()) {
109
109
  const byKey = new Map(menteeList.map((m) => [menteeKey(m), m]));
110
110
 
111
111
  const entries = config.collaborators.people.map((c) => ({
112
- orcid: c.orcid, name: c.name, affiliations: c.affiliations, m: byKey.get(c.orcid),
112
+ orcid: c.orcid, name: c.name, me: c.me, affiliations: c.affiliations, m: byKey.get(c.orcid),
113
113
  }));
114
114
  for (const m of menteeList) {
115
115
  if (!entries.some((e) => e.m === m)) {
@@ -140,6 +140,7 @@ export function collaboratorMap(menteeList = mentees()) {
140
140
  key: person.orcid ?? menteeKey(m),
141
141
  orcid: person.orcid,
142
142
  name: person.name,
143
+ ...(person.me && { me: true }),
143
144
  pins,
144
145
  // Only papers that landed inside a known post can be pinned; the rest are
145
146
  // still collaborations, and saying so beats pretending they do not exist.