Skip to content

Commit

Permalink
Update to Comunica v3
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Mar 19, 2024
1 parent ef72422 commit f15ff13
Show file tree
Hide file tree
Showing 5 changed files with 1,829 additions and 2,192 deletions.
2 changes: 1 addition & 1 deletion config/config-default.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^2.0.0/components/context.jsonld"
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^3.0.0/components/context.jsonld"
],
"import": [
"ccqs:config/config-default.json"
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@comunica/config-query-sparql": "^2.7.0",
"@comunica/query-sparql": "^2.10.2",
"@comunica/runner": "^2.10.0",
"@comunica/config-query-sparql": "^3.0.1",
"@comunica/query-sparql": "^3.0.1",
"@comunica/runner": "^3.0.1",
"@rubensworks/solid-client-authn-browser": "^1.13.0",
"@turf/centroid": "^6.5.0",
"babel-loader": "^8.2.3",
Expand All @@ -70,7 +70,6 @@
"leaflet": "^1.7.1",
"minimist": "^1.2.5",
"n3": "^1.16.2",
"node-polyfill-webpack-plugin": "^2.0.1",
"rdf-string": "^1.6.1",
"relative-to-absolute-iri": "^1.0.6",
"string-replace-loader": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/ldf-client-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var resultsIterator;

// Set up logging
var logger = new LoggerPretty({ level: 'info' });
logger.log = function (level, message, data) {
postMessage({ type: 'log', log: message + (data ? (' ' + JSON.stringify(data)) : '') + '\n' });
logger.log = function (level, color, message, data) {
postMessage({ type: 'log', log: message + '\n' });
};

// Handler for authenticating fetch requests within main window
Expand Down
4 changes: 0 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const webpack = require('webpack');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

// First check if we can load Comunica form cwd, if not, fallback to the default
let pathToComunica;
Expand Down Expand Up @@ -143,9 +142,6 @@ module.exports = [
},
plugins: [
new webpack.ProgressPlugin(),
new NodePolyfillPlugin({
includeAliases: ['Buffer'], // Buffer global is still needed due to the jsonparser library
}),
new webpack.NormalModuleReplacementPlugin(/^my-comunica-engine$/, path.join(process.cwd(), '.tmp-comunica-engine.js')),
...comunicaOverride ? [] : [
new webpack.NormalModuleReplacementPlugin(/^\@comunica/, (resource) => {
Expand Down
Loading

0 comments on commit f15ff13

Please sign in to comment.