refactor: Remove unnecessary Components.js workarounds

This commit is contained in:
Joachim Van Herwegen 2022-03-01 15:36:42 +01:00
parent 225affe42c
commit b84788e05f
4 changed files with 2 additions and 24 deletions

View File

@ -8,12 +8,7 @@
"comment": "These handlers are called whenever the server is started, and can be used to ensure that all necessary resources for booting are available.",
"@id": "urn:solid-server:default:ParallelInitializer",
"@type": "ParallelHandler",
"handlers": [
{
"comment": "This handler is here because having this array empty gives Components.js errors.",
"@type": "StaticHandler"
}
]
"handlers": [ ]
}
]
}

View File

@ -39,13 +39,6 @@
"@id": "urn:solid-server:auth:password:InteractionRouteHandler",
"@type": "WaterfallHandler",
"handlers": [
{
"comment": [
"This handler is required to prevent Components.js issues with arrays.",
"This might be fixed in the next Components.js release after which this can be removed."
],
"@type": "UnsupportedAsyncHandler"
},
{ "@id": "urn:solid-server:auth:password:IndexRouteHandler" },
{ "@id": "urn:solid-server:auth:password:PromptRouteHandler" },
{ "@id": "urn:solid-server:auth:password:LoginRouteHandler" },

View File

@ -8,13 +8,6 @@
"@id": "urn:solid-server:auth:password:InteractionRouteHandler",
"@type": "WaterfallHandler",
"handlers": [
{
"comment": [
"This handler is required to prevent Components.js issues with arrays.",
"This might be fixed in the next Components.js release after which this can be removed."
],
"@type": "UnsupportedAsyncHandler"
},
{ "@id": "urn:solid-server:auth:password:RegistrationRouteHandler" }
]
},

View File

@ -2,10 +2,7 @@
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^4.0.0/components/context.jsonld",
"@graph": [
{
"comment": [
"This will contain references to all the auxiliary strategies (such as the acl one) if they are needed.",
"Components.js does not support empty arrays, so this config can only by used if at least one strategy gets added."
],
"comment": "This will contain references to all the auxiliary strategies (such as the acl one) if they are needed.",
"@id": "urn:solid-server:default:AuxiliaryStrategy",
"@type": "RoutingAuxiliaryStrategy",
"sources": [ ]