Zach Leatherman :11ty: on Nostr: One lesson I’m taking away from the axobject-query incident: there isn’t a formal ...
One lesson I’m taking away from the axobject-query incident: there isn’t a formal agreement about which npm packages are isomorphic JavaScript friendly (intended for both client & server).
Notably the `browser` key in package.json is documented as to be used *instead* of `main` (not both):
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#browser (and axobject-query does not use `browser`)
Assuming that packages are client bundle friendly without tacit agreement from the maintainers of those packages is perilous!
Published at
2024-06-26 15:01:36Event JSON
{
"id": "517f5c4ac68037ccb6eca3def33ba0e4e17882560163e89e1ef8e4365b7684f5",
"pubkey": "2b05fd2c694b9bfcb922a77b35f58d9d0138c130afc974d0091c961ba323388d",
"created_at": 1719414096,
"kind": 1,
"tags": [
[
"proxy",
"https://fediverse.zachleat.com/@zachleat/112683522202867064",
"web"
],
[
"proxy",
"https://fediverse.zachleat.com/users/zachleat/statuses/112683522202867064",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fediverse.zachleat.com/users/zachleat/statuses/112683522202867064",
"pink.momostr"
],
[
"expiration",
"1722055018"
]
],
"content": "One lesson I’m taking away from the axobject-query incident: there isn’t a formal agreement about which npm packages are isomorphic JavaScript friendly (intended for both client \u0026 server).\n\nNotably the `browser` key in package.json is documented as to be used *instead* of `main` (not both): https://docs.npmjs.com/cli/v10/configuring-npm/package-json#browser (and axobject-query does not use `browser`)\n\nAssuming that packages are client bundle friendly without tacit agreement from the maintainers of those packages is perilous!",
"sig": "a89245a57ba0ddba0ab1d57066ca25d6ea269f754d16d85a53f2302f79a28a26c147789173f3ca9ec59cf9f8dd7fb626217bbf7c99b8772c16b67c78cd62121c"
}