Skip to content

Commit f15ff13

Browse files
committed
Update to Comunica v3
1 parent ef72422 commit f15ff13

File tree

5 files changed

+1829
-2192
lines changed

5 files changed

+1829
-2192
lines changed

config/config-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"@context": [
3-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^2.0.0/components/context.jsonld"
3+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^3.0.0/components/context.jsonld"
44
],
55
"import": [
66
"ccqs:config/config-default.json"

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
"dependencies": {
6060
"@babel/core": "^7.16.0",
6161
"@babel/preset-env": "^7.16.4",
62-
"@comunica/config-query-sparql": "^2.7.0",
63-
"@comunica/query-sparql": "^2.10.2",
64-
"@comunica/runner": "^2.10.0",
62+
"@comunica/config-query-sparql": "^3.0.1",
63+
"@comunica/query-sparql": "^3.0.1",
64+
"@comunica/runner": "^3.0.1",
6565
"@rubensworks/solid-client-authn-browser": "^1.13.0",
6666
"@turf/centroid": "^6.5.0",
6767
"babel-loader": "^8.2.3",
@@ -70,7 +70,6 @@
7070
"leaflet": "^1.7.1",
7171
"minimist": "^1.2.5",
7272
"n3": "^1.16.2",
73-
"node-polyfill-webpack-plugin": "^2.0.1",
7473
"rdf-string": "^1.6.1",
7574
"relative-to-absolute-iri": "^1.0.6",
7675
"string-replace-loader": "^3.1.0",

src/ldf-client-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ var resultsIterator;
1111

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

1818
// Handler for authenticating fetch requests within main window

webpack.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
22
const webpack = require('webpack');
3-
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
43

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

0 commit comments

Comments
 (0)