Jasper Vaneessen
668d0a331f
feat: Only accept NamedNodes as predicates for metadata
...
* refactor: move toCachedNamedNode (private)
* chore: only NamedNodes predicates in removes
* feat: enforce NamedNode predicates in most cases
* feat: getAll only accepts NamedNodes
* feat: toCachedNamedNode only accepts string arg
* tests: use NamedNodes for getAll calls
* test: remove unnecessary string check for coverage
* tests: fix NamedNodes in new tests after rebase
* feat: metadatawriters store NamedNodes
* refactor: toCachedNamedNode as utility function
* fix: double write of linkRelMap
* test: use the CONTENT_TYPE constant
2022-04-15 09:53:39 +02:00
Joachim Van Herwegen
16e9368734
test: Add flushPromises utility function
2022-03-31 17:00:09 +02:00
Joachim Van Herwegen
b3da9c9fcf
refactor: Restructure source code folder
...
This way the location of certain classes should make more sense
2021-10-12 12:51:02 +02:00
Joachim Van Herwegen
c2ad892020
feat: Create RootInitializer to set up root resources
2021-07-22 15:08:28 +02:00
Joachim Van Herwegen
e8a0f63e02
feat: Add App class to start and stop the server
2021-06-14 16:11:56 +02:00
renovate[bot]
afc662ca9a
chore: Update (ts-)jest and use modern fake timers where possible
...
* chore(deps): update dependency jest to v27
* chore: Update (ts-)jest and use modern fake timers where possible
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2021-05-31 15:29:14 +02:00
Joachim Van Herwegen
a28fb0258f
feat: Use an IdentifierStrategy in InMemoryDataAccessor
...
Now it's also possible to support multiple root containers.
2021-02-25 13:16:26 +01:00
Joachim Van Herwegen
0c047234e3
feat: Support auxiliary behaviour in DataAccessorBasedStore
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
061c856161
feat: Add auxiliary support to LockingResourceStore
...
This way locks are always on the associated resource
if there is a request on an auxiliary resource.
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
b61d46900f
feat: Create new interface for lockers with only 1 kind of lock
2021-02-09 14:35:12 +01:00
Joachim Van Herwegen
7cf22be00c
fix: Remove data.once('data') checks from test
...
They were not needed for the test (only need to check if stream is destroyed
or not), and caused errors in Node 14.0.
2021-01-26 23:32:44 +01:00
Joachim Van Herwegen
c17402517e
feat: Update LockingResourceStore to use new locking interface
...
This has as added bonus that, in the case of getRepresentation,
the stream will be destroyed with an error in case of a timeout.
2021-01-22 11:34:51 +01:00
Ruben Verborgh
e544e6dc11
feat: Allow custom root ACL.
2021-01-15 12:43:34 +01:00
Ruben Verborgh
66e636878f
feat: Add BasicRepresentation.
2021-01-11 14:23:52 +01:00
Ruben Verborgh
be1af89b56
feat: Add Content-Type constructor to metadata.
2021-01-11 14:03:38 +01:00
Ruben Verborgh
8e138c36d1
refactor: Use types to create vocabularies.
2021-01-02 22:56:25 +01:00
Ruben Verborgh
e4c4d2a781
test: Move configuration into integration folder.
2020-12-22 00:33:33 +01:00
Joachim Van Herwegen
36eed5d620
chore: Remove assumption that DataAccessors have a root container by default
2020-12-18 10:33:54 +01:00
Joachim Van Herwegen
1bb5de97ab
refactor: Remove base URls with ContainerManager when possible
2020-12-11 12:42:17 +01:00
Joachim Van Herwegen
f0db9e501f
refactor: Replace getParentContainer util function with ContainerManager
2020-12-11 12:42:17 +01:00
smessie
cdf7e77e6b
fix: Resolve merge conflicts caused by move to guardedStream
2020-11-25 09:05:38 +01:00
smessie
f4afc3ce16
test: Divide current tests into integration and unit tests for LockingResourceStore
2020-11-25 09:05:38 +01:00