From 4ebba718be8fc86b422d8f757e5274a90ce78728 Mon Sep 17 00:00:00 2001 From: Nigel Leck Date: Tue, 8 Aug 2023 18:33:08 +1000 Subject: [PATCH] Upgrade Deno version (#126) * Upgraded version. * Removed deprecated --------- Co-authored-by: Nigel Leck --- src/Neat.ts | 4 ++-- src/architecture/Network.ts | 6 +++--- src/architecture/NetworkUtils.ts | 11 ++++++----- src/tags/TagAndReleaseApp.ts | 2 +- test/CRISPR.ts | 7 +++++-- test/Clipped.ts | 2 +- test/Compact.ts | 2 +- test/Constant.ts | 2 +- test/Correct.ts | 2 +- test/Costs.ts | 2 +- test/CreatureStore.ts | 4 ++-- test/Elitism.ts | 2 +- test/Evolve.ts | 2 +- test/ExperimentStore.ts | 2 +- test/FineTune.ts | 2 +- test/FineTuneUUID.ts | 2 +- test/Fix.ts | 2 +- test/Hypot.ts | 2 +- test/IfElse.ts | 2 +- test/InConnections.ts | 2 +- test/InFocus.ts | 2 +- test/Maximum.ts | 2 +- test/Mean.ts | 2 +- test/Minimum.ts | 2 +- test/Network.ts | 4 ++-- test/NetworkUUID.ts | 6 +++--- test/NodeUUID.ts | 2 +- test/OffSpring.ts | 2 +- test/Projection.ts | 2 +- test/Ratios.ts | 2 +- test/TagAndRelease.ts | 2 +- test/TagNode.ts | 2 +- test/Tags.ts | 2 +- test/TraceAggregate.ts | 2 +- test/TraceNode.ts | 4 ++-- test/TraceStore.ts | 4 ++-- test/Train.ts | 2 +- test/Worker.ts | 2 +- test/addNode.ts | 2 +- test/ifPropagation.ts | 4 ++-- test/makeActivation.ts | 2 +- test/toJSON.ts | 2 +- 42 files changed, 61 insertions(+), 57 deletions(-) diff --git a/src/Neat.ts b/src/Neat.ts index 2c095d92..a8acca8a 100644 --- a/src/Neat.ts +++ b/src/Neat.ts @@ -15,12 +15,12 @@ import { addTag, getTag, removeTag } from "../src/tags/TagsInterface.ts"; import { fineTuneImprovement } from "./architecture/FineTune.ts"; import { makeElitists } from "../src/architecture/elitism.ts"; import { Network } from "./architecture/Network.ts"; -import { ensureDirSync } from "https://deno.land/std@0.194.0/fs/ensure_dir.ts"; +import { ensureDirSync } from "https://deno.land/std@0.197.0/fs/ensure_dir.ts"; import { Mutation } from "./methods/mutation.ts"; import { Selection } from "./methods/Selection.ts"; import { Offspring } from "./architecture/Offspring.ts"; import { NetworkUtil } from "./architecture/NetworkUtils.ts"; -import { format } from "https://deno.land/std@0.194.0/fmt/duration.ts"; +import { format } from "https://deno.land/std@0.197.0/fmt/duration.ts"; export class Neat { readonly input: number; diff --git a/src/architecture/Network.ts b/src/architecture/Network.ts index bd6ba7f8..db12fad0 100644 --- a/src/architecture/Network.ts +++ b/src/architecture/Network.ts @@ -15,14 +15,14 @@ import { make as makeConfig } from "../config/NeatConfig.ts"; import { NeatOptions } from "../config/NeatOptions.ts"; import { DataRecordInterface } from "./DataSet.ts"; -import { yellow } from "https://deno.land/std@0.194.0/fmt/colors.ts"; +import { yellow } from "https://deno.land/std@0.197.0/fmt/colors.ts"; import { Neat } from "../Neat.ts"; import { makeDataDir } from "../architecture/DataSet.ts"; import { WorkerHandler } from "../multithreading/workers/WorkerHandler.ts"; import { getTag } from "../tags/TagsInterface.ts"; -import { format } from "https://deno.land/std@0.194.0/fmt/duration.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { format } from "https://deno.land/std@0.197.0/fmt/duration.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { CostInterface, Costs } from "../Costs.ts"; import { Node } from "../architecture/Node.ts"; import { findRatePolicy, randomPolicyName } from "../config.ts"; diff --git a/src/architecture/NetworkUtils.ts b/src/architecture/NetworkUtils.ts index baec1cb8..d3fab93a 100644 --- a/src/architecture/NetworkUtils.ts +++ b/src/architecture/NetworkUtils.ts @@ -1,4 +1,4 @@ -import { generate as generateV5 } from "https://deno.land/std@0.194.0/uuid/v5.ts"; +import { generate as generateV5 } from "https://deno.land/std@0.197.0/uuid/v5.ts"; import { Network } from "./Network.ts"; export class NetworkUtil { @@ -26,11 +26,12 @@ export class NetworkUtil { delete c.trace; }, ); - delete json.tags; - delete json.uuid; - delete json.score; + const tmp = { + nodes: json.nodes, + connections: json.connections, + }; - const txt = JSON.stringify(json, null, 1); + const txt = JSON.stringify(tmp); const utf8 = NetworkUtil.TE.encode(txt); diff --git a/src/tags/TagAndReleaseApp.ts b/src/tags/TagAndReleaseApp.ts index 3541ce25..2c3565bf 100644 --- a/src/tags/TagAndReleaseApp.ts +++ b/src/tags/TagAndReleaseApp.ts @@ -1,4 +1,4 @@ -import { parse as parseArgs } from "https://deno.land/std@0.194.0/flags/mod.ts"; +import { parse as parseArgs } from "https://deno.land/std@0.197.0/flags/mod.ts"; import { addTag } from "./TagsInterface.ts"; interface TagAndReleaseOptions { diff --git a/test/CRISPR.ts b/test/CRISPR.ts index 76463fd3..0696dd14 100644 --- a/test/CRISPR.ts +++ b/test/CRISPR.ts @@ -1,11 +1,14 @@ -import { assertEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { + assert, + assertEquals, +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { CRISPR } from "../src/reconstruct/CRISPR.ts"; import { Network } from "../src/architecture/Network.ts"; import { getTag } from "../src/tags/TagsInterface.ts"; import { Node } from "../src/architecture/Node.ts"; import { Mutation } from "../src/methods/mutation.ts"; -import { assert } from "https://deno.land/std@0.194.0/_util/asserts.ts"; + import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/Clipped.ts b/test/Clipped.ts index 1855c358..b3528517 100644 --- a/test/Clipped.ts +++ b/test/Clipped.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Compact.ts b/test/Compact.ts index 3ffc35e8..34aa8a7b 100644 --- a/test/Compact.ts +++ b/test/Compact.ts @@ -3,7 +3,7 @@ import { assert, assertAlmostEquals, fail, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Constant.ts b/test/Constant.ts index 9bc9108a..50f87c77 100644 --- a/test/Constant.ts +++ b/test/Constant.ts @@ -1,7 +1,7 @@ import { assert, assertAlmostEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Correct.ts b/test/Correct.ts index df1c6e17..04243591 100644 --- a/test/Correct.ts +++ b/test/Correct.ts @@ -1,4 +1,4 @@ -import { assertAlmostEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assertAlmostEquals } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Costs.ts b/test/Costs.ts index 6b21b339..2a4ede27 100644 --- a/test/Costs.ts +++ b/test/Costs.ts @@ -1,4 +1,4 @@ -import { assertAlmostEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assertAlmostEquals } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Costs } from "../src/Costs.ts"; import { MSELimit } from "../src/costs/MSELimit.ts"; import { TwelveSteps } from "../src/costs/TwelveSteps.ts"; diff --git a/test/CreatureStore.ts b/test/CreatureStore.ts index de5e334b..f3e897fd 100644 --- a/test/CreatureStore.ts +++ b/test/CreatureStore.ts @@ -1,5 +1,5 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { NeatOptions } from "../src/config/NeatOptions.ts"; import { Network } from "../src/architecture/Network.ts"; diff --git a/test/Elitism.ts b/test/Elitism.ts index 4fa9b653..deaa9195 100644 --- a/test/Elitism.ts +++ b/test/Elitism.ts @@ -1,5 +1,5 @@ import { makeElitists } from "../src/architecture/elitism.ts"; -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; import { Network } from "../src/architecture/Network.ts"; diff --git a/test/Evolve.ts b/test/Evolve.ts index 92175735..1df1e85b 100644 --- a/test/Evolve.ts +++ b/test/Evolve.ts @@ -1,5 +1,5 @@ import { Network } from "../src/architecture/Network.ts"; -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Mutation } from "../src/methods/mutation.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/ExperimentStore.ts b/test/ExperimentStore.ts index 4df3afa6..a7394bf4 100644 --- a/test/ExperimentStore.ts +++ b/test/ExperimentStore.ts @@ -1,5 +1,5 @@ import { Neat } from "../src/Neat.ts"; -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { addTag } from "../src/tags/TagsInterface.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkUtil } from "../src/architecture/NetworkUtils.ts"; diff --git a/test/FineTune.ts b/test/FineTune.ts index 940ad161..7a806256 100644 --- a/test/FineTune.ts +++ b/test/FineTune.ts @@ -1,6 +1,6 @@ import { fineTuneImprovement } from "../src/architecture/FineTune.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { addTag } from "../src/tags/TagsInterface.ts"; diff --git a/test/FineTuneUUID.ts b/test/FineTuneUUID.ts index f07857ff..381d8e14 100644 --- a/test/FineTuneUUID.ts +++ b/test/FineTuneUUID.ts @@ -2,7 +2,7 @@ import { assertAlmostEquals, assertEquals, fail, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { fineTuneImprovement } from "../src/architecture/FineTune.ts"; import { Network } from "../src/architecture/Network.ts"; diff --git a/test/Fix.ts b/test/Fix.ts index ef4290ae..6daae72a 100644 --- a/test/Fix.ts +++ b/test/Fix.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Hypot.ts b/test/Hypot.ts index b84848f7..1f4cfe84 100644 --- a/test/Hypot.ts +++ b/test/Hypot.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/IfElse.ts b/test/IfElse.ts index 4747836c..3d2326d8 100644 --- a/test/IfElse.ts +++ b/test/IfElse.ts @@ -1,7 +1,7 @@ import { assert, assertAlmostEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/InConnections.ts b/test/InConnections.ts index 850d63a3..23e3045b 100644 --- a/test/InConnections.ts +++ b/test/InConnections.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/InFocus.ts b/test/InFocus.ts index 82e6fa7a..bce98e43 100644 --- a/test/InFocus.ts +++ b/test/InFocus.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/Maximum.ts b/test/Maximum.ts index e8e58f75..a8f64b20 100644 --- a/test/Maximum.ts +++ b/test/Maximum.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Mean.ts b/test/Mean.ts index fc2e9978..9caadfaf 100644 --- a/test/Mean.ts +++ b/test/Mean.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Minimum.ts b/test/Minimum.ts index a7d67367..548776d6 100644 --- a/test/Minimum.ts +++ b/test/Minimum.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Network.ts b/test/Network.ts index 9c467d80..6942ae9a 100644 --- a/test/Network.ts +++ b/test/Network.ts @@ -3,10 +3,10 @@ import { assertAlmostEquals, assertEquals, assertNotEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { DataRecordInterface } from "../src/architecture/DataSet.ts"; import { Offspring } from "../src/architecture/Offspring.ts"; import { NeatOptions } from "../src/config/NeatOptions.ts"; diff --git a/test/NetworkUUID.ts b/test/NetworkUUID.ts index 65aa65c3..85f9d931 100644 --- a/test/NetworkUUID.ts +++ b/test/NetworkUUID.ts @@ -3,7 +3,7 @@ import { assert, assertEquals, assertNotEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkUtil } from "../src/architecture/NetworkUtils.ts"; import { Neat } from "../src/Neat.ts"; @@ -46,7 +46,7 @@ Deno.test("knownName", async () => { console.log("UUID", uuid); assert( - uuid == "5d82864b-dd93-55aa-af4a-0456ed67dd13", + uuid == "7750d0bf-6972-5e4b-92f5-1bbd9da220f7", "Wrong UUID was: " + uuid, ); }); @@ -132,7 +132,7 @@ Deno.test("ignoreTags", async () => { /** Manually update if needed. */ assert( - uuid2 == "f5c7dea8-c1d9-51ed-b79f-22751f1d65de", + uuid2 == "91c2c15c-3ba4-52de-bf60-5c1c129875b2", "Wrong UUID was: " + uuid2, ); }); diff --git a/test/NodeUUID.ts b/test/NodeUUID.ts index 12927836..cd7a4afd 100644 --- a/test/NodeUUID.ts +++ b/test/NodeUUID.ts @@ -2,7 +2,7 @@ import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; import { assert, assertEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/OffSpring.ts b/test/OffSpring.ts index 198b825e..c44537c3 100644 --- a/test/OffSpring.ts +++ b/test/OffSpring.ts @@ -1,7 +1,7 @@ import { Neat } from "../src/Neat.ts"; import { Network } from "../src/architecture/Network.ts"; import { Offspring } from "../src/architecture/Offspring.ts"; -import { assertEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/Projection.ts b/test/Projection.ts index a99d03af..eefb1cbb 100644 --- a/test/Projection.ts +++ b/test/Projection.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Ratios.ts b/test/Ratios.ts index dbb4bde6..fde46585 100644 --- a/test/Ratios.ts +++ b/test/Ratios.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { NeatOptions } from "../src/config/NeatOptions.ts"; import { Network } from "../src/architecture/Network.ts"; diff --git a/test/TagAndRelease.ts b/test/TagAndRelease.ts index 832d780a..adab3e0b 100644 --- a/test/TagAndRelease.ts +++ b/test/TagAndRelease.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { TagAndRelease } from "../src/tags/TagAndReleaseApp.ts"; import { getTag } from "../src/tags/TagsInterface.ts"; diff --git a/test/TagNode.ts b/test/TagNode.ts index e7e1ff0c..2cfa8113 100644 --- a/test/TagNode.ts +++ b/test/TagNode.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Tags.ts b/test/Tags.ts index 9048ef0e..ae7dc2d0 100644 --- a/test/Tags.ts +++ b/test/Tags.ts @@ -9,7 +9,7 @@ import { Network } from "../src/architecture/Network.ts"; import { assert, assertEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; Deno.test("tag", () => { diff --git a/test/TraceAggregate.ts b/test/TraceAggregate.ts index 0dc87eed..97c2088f 100644 --- a/test/TraceAggregate.ts +++ b/test/TraceAggregate.ts @@ -1,7 +1,7 @@ import { assert, assertAlmostEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/TraceNode.ts b/test/TraceNode.ts index 99f41195..9599a575 100644 --- a/test/TraceNode.ts +++ b/test/TraceNode.ts @@ -1,5 +1,5 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { NeatOptions } from "../src/config/NeatOptions.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/TraceStore.ts b/test/TraceStore.ts index 53dd91e2..5c650bec 100644 --- a/test/TraceStore.ts +++ b/test/TraceStore.ts @@ -1,5 +1,5 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { NeatOptions } from "../src/config/NeatOptions.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/Train.ts b/test/Train.ts index f10e94e1..052ead4e 100644 --- a/test/Train.ts +++ b/test/Train.ts @@ -1,5 +1,5 @@ import { Network } from "../src/architecture/Network.ts"; -import { assert, fail } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert, fail } from "https://deno.land/std@0.197.0/assert/mod.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/Worker.ts b/test/Worker.ts index 71b52d10..541fcd81 100644 --- a/test/Worker.ts +++ b/test/Worker.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { WorkerHandler } from "../src/multithreading/workers/WorkerHandler.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; diff --git a/test/addNode.ts b/test/addNode.ts index 8535b97f..24f8bef3 100644 --- a/test/addNode.ts +++ b/test/addNode.ts @@ -1,4 +1,4 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; diff --git a/test/ifPropagation.ts b/test/ifPropagation.ts index d60b7240..1cbde9ca 100644 --- a/test/ifPropagation.ts +++ b/test/ifPropagation.ts @@ -1,5 +1,5 @@ -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; -import { emptyDirSync } from "https://deno.land/std@0.194.0/fs/empty_dir.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; +import { emptyDirSync } from "https://deno.land/std@0.197.0/fs/empty_dir.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; import { ConnectionTrace } from "../src/architecture/ConnectionInterfaces.ts"; diff --git a/test/makeActivation.ts b/test/makeActivation.ts index 0ccce375..7e2d06ac 100644 --- a/test/makeActivation.ts +++ b/test/makeActivation.ts @@ -1,6 +1,6 @@ import { assertAlmostEquals, -} from "https://deno.land/std@0.194.0/testing/asserts.ts"; +} from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { NetworkState } from "../src/architecture/NetworkState.ts"; diff --git a/test/toJSON.ts b/test/toJSON.ts index fabf357c..10615723 100644 --- a/test/toJSON.ts +++ b/test/toJSON.ts @@ -1,5 +1,5 @@ import { NetworkInternal } from "../src/architecture/NetworkInterfaces.ts"; -import { assert } from "https://deno.land/std@0.194.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.197.0/assert/mod.ts"; import { Network } from "../src/architecture/Network.ts"; import { ConnectionInternal } from "../src/architecture/ConnectionInterfaces.ts";