-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from zazuko/shared-env
refactor: env shared by all packages
- Loading branch information
Showing
76 changed files
with
559 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"barnard59-core": major | ||
--- | ||
|
||
This is breaking change for users creating and running pipeline programmatically. The `createPipeline` | ||
function exported by the package now requires that an RDF/JS Environment is passed as an argument. | ||
A compatible environment which includes all necessary factories can be imported from the new | ||
`barnard59-env` package. | ||
|
||
```diff | ||
import { createPipeline, run } from 'barnard59-core' | ||
import env from 'barnard59-env' | ||
|
||
let pointer | ||
|
||
await run(createPipeline(pointer, { | ||
+ env | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"barnard59-base": patch | ||
--- | ||
|
||
Remove redundant dependency on `rdf-utils-fs` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"barnard59-env": major | ||
--- | ||
|
||
First release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"barnard59-graph-store": minor | ||
"barnard59-validation": minor | ||
"barnard59-formats": minor | ||
"barnard59-sparql": minor | ||
"barnard59-csvw": minor | ||
"barnard59": minor | ||
"barnard59-test-support": patch | ||
"barnard59-test-e2e": patch | ||
--- | ||
|
||
Removed dependency on any RDF/JS Environment. The CLI provides it at runtime to ensure that steps | ||
use the same factories. Step implementors are encouraged to use the environment provided by the | ||
barnard59 runtime insead of importing directly. | ||
|
||
```diff | ||
-import rdf from 'rdf-ext' | ||
|
||
export function myStep() { | ||
- const dataset = rdf.dataset() | ||
+ const dataset = this.env.dataset() | ||
|
||
return rdf.dataset().toStream() | ||
} | ||
``` |
Oops, something went wrong.