From 4909886b56852dcaac753d51dafcd6ef86d28d57 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Tue, 26 Nov 2024 07:43:45 +0100 Subject: [PATCH 1/3] Fix missing IS_IMPLEMENTED_IN for Typescript declarations --- ...IMPLEMENTED_IN_relationship_for_matching_declarations.cypher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypher/Typescript_Enrichment/Add_IS_IMPLEMENTED_IN_relationship_for_matching_declarations.cypher b/cypher/Typescript_Enrichment/Add_IS_IMPLEMENTED_IN_relationship_for_matching_declarations.cypher index 559e1cc66..d650d4591 100644 --- a/cypher/Typescript_Enrichment/Add_IS_IMPLEMENTED_IN_relationship_for_matching_declarations.cypher +++ b/cypher/Typescript_Enrichment/Add_IS_IMPLEMENTED_IN_relationship_for_matching_declarations.cypher @@ -2,7 +2,7 @@ MATCH (externalModule:TS&ExternalModule)-[:EXPORTS]->(externalDeclaration:TS&ExternalDeclaration) MATCH (externalModule)-[:IS_IMPLEMENTED_IN]->(internalModule:TS&Module) - MATCH (externalModule)-[:EXPORTS]->(internalDeclaration:TS&!ExternalDeclaration) + MATCH (internalModule)-[:EXPORTS]->(internalDeclaration:TS&!ExternalDeclaration) WHERE externalDeclaration.name = internalDeclaration.name WITH externalDeclaration, internalDeclaration CALL { WITH externalDeclaration, internalDeclaration From b32a368d29de8b44bc788d0b4c4fb932993a2cb4 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Tue, 26 Nov 2024 07:50:15 +0100 Subject: [PATCH 2/3] Double the memory to support larger projects --- scripts/configuration/template-neo4j-v4.conf | 10 +++++----- scripts/configuration/template-neo4j.conf | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/configuration/template-neo4j-v4.conf b/scripts/configuration/template-neo4j-v4.conf index 1f2b16b36..ef3ea6696 100644 --- a/scripts/configuration/template-neo4j-v4.conf +++ b/scripts/configuration/template-neo4j-v4.conf @@ -6,17 +6,17 @@ dbms.security.procedures.unrestricted=apoc.*,gds.* # Memory: Java Heap Size -dbms.memory.heap.initial_size=4g -dbms.memory.heap.max_size=4g +dbms.memory.heap.initial_size=8g +dbms.memory.heap.max_size=8g # Memory: The amount of memory to use for mapping the store files. -dbms.memory.pagecache.size=1g +dbms.memory.pagecache.size=2g # Memory: Exits JVM on the first occurrence of an out-of-memory error. dbms.jvm.additional=-XX:+ExitOnOutOfMemoryError # Memory: Limit the amount of memory that all of the running transaction can consume. -dbms.memory.transaction.global_max_size=3g +dbms.memory.transaction.global_max_size=6g # Memory: Limit the amount of memory that a single transaction can consume. -dbms.memory.transaction.max_size=3g \ No newline at end of file +dbms.memory.transaction.max_size=6g \ No newline at end of file diff --git a/scripts/configuration/template-neo4j.conf b/scripts/configuration/template-neo4j.conf index 650d350c5..0427ec16a 100644 --- a/scripts/configuration/template-neo4j.conf +++ b/scripts/configuration/template-neo4j.conf @@ -6,17 +6,17 @@ dbms.security.procedures.unrestricted=apoc.*,gds.* # Memory: Java Heap Size -server.memory.heap.initial_size=4g -server.memory.heap.max_size=4g +server.memory.heap.initial_size=8g +server.memory.heap.max_size=8g # Memory: The amount of memory to use for mapping the store files. -server.memory.pagecache.size=1g +server.memory.pagecache.size=2g # Memory: Exits JVM on the first occurrence of an out-of-memory error. server.jvm.additional=-XX:+ExitOnOutOfMemoryError # Memory: Limit the amount of memory that all of the running transaction can consume. -db.memory.transaction.total.max=3g +db.memory.transaction.total.max=6g # Memory: Limit the amount of memory that a single transaction can consume. -db.memory.transaction.max=3g \ No newline at end of file +db.memory.transaction.max=6g \ No newline at end of file From e82452825f2f93745fb2ffc511d07a5908924533 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Tue, 26 Nov 2024 08:03:41 +0100 Subject: [PATCH 3/3] Fix security vulnerabilities with npm audit fix --- graph-visualization/package-lock.json | 59 ++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/graph-visualization/package-lock.json b/graph-visualization/package-lock.json index 091058576..3b9193502 100644 --- a/graph-visualization/package-lock.json +++ b/graph-visualization/package-lock.json @@ -819,6 +819,15 @@ "node": ">=6" } }, + "node_modules/centra": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/centra/-/centra-2.7.0.tgz", + "integrity": "sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6" + } + }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -914,9 +923,10 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1135,6 +1145,26 @@ "url": "https://github.com/sindresorhus/file-type?sponsor=1" } }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", @@ -1456,16 +1486,17 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/load-bmfont": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.1.tgz", - "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.2.tgz", + "integrity": "sha512-qElWkmjW9Oq1F9EI5Gt7aD9zcdHb9spJCW1L/dmPf7KzCCEJxq8nhHz5eCgI9aMf7vrG/wyaCqdsI+Iy9ZTlog==", + "license": "MIT", "dependencies": { "buffer-equal": "0.0.1", "mime": "^1.3.4", "parse-bmfont-ascii": "^1.0.3", "parse-bmfont-binary": "^1.0.5", "parse-bmfont-xml": "^1.1.4", - "phin": "^2.9.1", + "phin": "^3.7.1", "xhr": "^2.0.1", "xtend": "^4.0.0" } @@ -1778,10 +1809,16 @@ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, "node_modules/phin": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/phin/-/phin-2.9.3.tgz", - "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info." + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/phin/-/phin-3.7.1.tgz", + "integrity": "sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==", + "license": "MIT", + "dependencies": { + "centra": "^2.7.0" + }, + "engines": { + "node": ">= 8" + } }, "node_modules/pixelmatch": { "version": "4.0.2",