Repository navigation
@_linked/sioc
1.2.2
Patch Changes
- #6
0389118Thanks @flyon! - Remove thedevelopmentexport condition (pointed atsrc, which isn't shipped to npm). Monorepo dev resolves workspace source via the cli Vite plugin; standalone resolvesimport → lib. No consumer-visible change.
1.2.1
Patch Changes
- #3
ed6e99aThanks @flyon! - loadData: ESM-only JSON import — drop the dead CJS branch, add the{ with: { type: 'json' } }import attribute.
1.2.0
Minor Changes
- #2
7af8cc4Thanks @flyon! - ESM-only. Dropped the CommonJS build; ships ES modules only (type: module, norequireexport condition, nolib/cjs). Fixed the roottypesfield. CJS consumers on Node 22+ canrequire()it (sync ESM) or use dynamicimport().
1.1.0
Minor Changes
-
fe303c7- Renamed fromlincd-siocand extracted from thelincd.orgumbrella
to its own workspace + git repo. This is the first release under the
@_linked/siocname.Migration from
lincd-siocConsumers importing
lincd-siocshould change the import name only —
the JS API surface is unchanged fromlincd-sioc@1.0.3:- import { UserAccount } from 'lincd-sioc/shapes/UserAccount'; + import { UserAccount } from '@_linked/sioc/shapes/UserAccount';
"dependencies": { - "lincd-sioc": "~1.0" + "@_linked/sioc": "^1.1" }Shape registration strings that named the legacy package also need updating:
- shape: ['lincd-sioc', 'UserAccount'] + shape: ['@_linked/sioc', 'UserAccount']
(This matters if you persist the registration to a SHACL dataset; the
backing string is what the framework uses to dispatch.)What's in this release
All seven existing sioc shapes:
UserAccount(sioc:UserAccount)Site(sioc:Site)Space(sioc:Space)Container(sioc:Container)Item(sioc:Item)Role(sioc:Role)Usergroup(sioc:Usergroup)
Plus the matching
siocontology namespace export,UserAvatar+
UserNameReact components, and thelincd-types-from-sioc-types.json
data fixture.Internal changes vs
lincd-sioc@1.0.3UserAccountextendsShapedirectly (wasResourcefrom
lincd-rdfs).Resourcejust extendedShapeplus atypegetter
that returnsnull; the flatter chain is functionally equivalent.getAccountOf(_person)parameter retyped fromfoaf:Personto
unknown. The method body already threw "not migrated yet" —
retype reflects the actual usable signature.- Dropped deps:
foaf,lincd-rdfs(both became unreachable after
the two changes above). - Modern build pipeline: dual ESM/CJS output via
rimraf+
tsconfig-to-dual-package. Replaces the legacylincd buildscript. developmentconditional export added topackage.json—
Vite-based consumers resolve straight tosrc/for HMR.- Changesets + CI workflows added (matching
@_linked/dcat).
Compatibility
- API surface unchanged from
lincd-sioc@1.0.3for all current callers. getAccountOf<T>(_person)parameter is nowunknowninstead of
foaf:Person. Calls that pass a foaf Person still compile (unknown
accepts anything); calls relied on thefoaf:Persontype for
narrowing would lose that — but since the body unconditionally throws,
no real call site exercises this.
Context: see create-now plan-011 report (docs/reports/009-legacy-lincd-eradication.md).
1.0.4
Patch Changes
- Renamed from
lincd-siocto@_linked/siocand migrated out of the
lincd.org umbrella to its own package + git repo. Internal source
unchanged (already used@_linked/coreand@_linked/schema); only
package name + tooling structure updated. CN +@_linked/auth
consumers updated to import from@_linked/sioc/.... See create-now
plan-011 §"Phase 4 — Rename lincd-sioc → @_linked/sioc" for
motivation and full migration breakdown.