Skip to content

Commit

Permalink
Update built types (#65)
Browse files Browse the repository at this point in the history
* feat: dataset utils

* docs: dataset-ext features

* test: with toCanonical

* build: update types
  • Loading branch information
tpluscode authored May 10, 2024
1 parent 2504860 commit d119491
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-camels-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/env": minor
---

Added static utilities `toCanonical`, `toStream` and `fromStream` to dataset factory
5 changes: 5 additions & 0 deletions .changeset/pink-points-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/env-node": patch
---

Update generated types
6 changes: 6 additions & 0 deletions packages/env-node/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ describe('@zazuko/env-node', () => {
expect(roundTripped.toCanonical()).to.eq(dataset.toCanonical())
}, { extension: 'ttl' })
})

it('provides dataset factory static methods', () => {
expect(rdf.dataset).to.have.property('toCanonical').and.to.be.a('function')
expect(rdf.dataset).to.have.property('toStream').and.to.be.a('function')
expect(rdf.dataset).to.have.property('fromStream').and.to.be.a('function')
})
})
})

0 comments on commit d119491

Please sign in to comment.