Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/wide-baths-invent.md

This file was deleted.

18 changes: 10 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# Changelog

### 1.0.0 (from LINCD.js)
## 1.0.0

### Major Changes
This is a rebranding + extraction release. It moves the core query/shape system into `@_linked/core` and removes RDF models and React-specific code.

Key changes:

- **New package name:** import from `@_linked/core` instead of `lincd`.
- **Node references everywhere:** use `NodeReferenceValue = {id: string}` everywhere. `NamedNode` does not exist in this package.
- **Before (LINCD.js):**
```typescript
import {NamedNode} from 'lincd/models';
const name = NamedNode.getOrCreate('https://schema.org/name');
import { NamedNode } from "lincd/models";
const name = NamedNode.getOrCreate("https://schema.org/name");
```
- **After (`@_linked/core`):**
```typescript
import {createNameSpace} from '@_linked/core/utils/NameSpace';
const schema = createNameSpace('https://schema.org/');
const name = schema('name'); // {id: 'https://schema.org/name'}
import { createNameSpace } from "@_linked/core/utils/NameSpace";
const schema = createNameSpace("https://schema.org/");
const name = schema("name"); // {id: 'https://schema.org/name'}
```
- **Decorator paths:** property decorators now require `NodeReferenceValue` paths (no strings, no `NamedNode`).
- **Before:**
Expand All @@ -40,11 +42,11 @@ Key changes:
- **Query context:** context values are `NodeReferenceValue` (or QResults) instead of RDF nodes.
- **Before:**
```typescript
setQueryContext('user', NamedNode.getOrCreate(userId), Person);
setQueryContext("user", NamedNode.getOrCreate(userId), Person);
```
- **After:**
```typescript
setQueryContext('user', {id: userId}, Person);
setQueryContext("user", { id: userId }, Person);
```
- **No RDF models in core:** `NamedNode`, `Literal`, `BlankNode`, `Quad`, `Graph`, and all RDF collections are not available in `@_linked/core`. Use a store package (e.g. `@_linked/rdf-mem-store`) if you need RDF models or quad-level access.
- **Shape instances:** shape classes no longer carry RDF nodes or instance graph APIs. Decorated accessors register SHACL metadata but do not implement runtime get/set behavior.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@_linked/core",
"version": "0.0.0",
"version": "1.0.0",
"license": "MIT",
"description": "Linked.js core query and SHACL shape DSL (copy-then-prune baseline)",
"repository": {
Expand Down