Skip to content

Commit 8dd1951

Browse files
committed
Upgrade Core and Blaze
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent e9e6097 commit 8dd1951

82 files changed

Lines changed: 8353 additions & 5249 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DEPENDENCIES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core 277dcfa984d2a1ba3ef3d643361a69f2a0bddbc3
3-
blaze https://github.com/sourcemeta/blaze 079b9d438b37ee40966730c79a498abda84c04f8
2+
core https://github.com/sourcemeta/core 7745054cc2334341799207eabd6cc13986023db8
3+
blaze https://github.com/sourcemeta/blaze 93f98104ac0d2a62b3e0023077818cc7511fb6da
44
bootstrap https://github.com/twbs/bootstrap 1a6fdfae6be09b09eaced8f0e442ca6f7680a61e

src/compiler/encoding.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ constexpr auto ENCODING_V1{"tag:sourcemeta.com,2024:jsonbinpack/encoding/v1"};
1111
inline auto make_resolver(const sourcemeta::blaze::SchemaResolver &fallback)
1212
-> auto {
1313
return [&fallback](std::string_view identifier)
14-
-> std::optional<sourcemeta::core::JSON> {
14+
-> sourcemeta::blaze::SchemaResolverResult {
1515
if (identifier == ENCODING_V1) {
16-
return sourcemeta::core::parse_json(R"JSON({
16+
static const auto schema{sourcemeta::core::parse_json(R"JSON({
1717
"$id": "tag:sourcemeta.com,2024:jsonbinpack/encoding/v1",
1818
"$schema": "https://json-schema.org/draft/2020-12/schema",
1919
"$vocabulary": {
2020
"https://json-schema.org/draft/2020-12/vocab/core": true,
2121
"tag:sourcemeta.com,2024:jsonbinpack/encoding/v1": true
2222
}
23-
})JSON");
23+
})JSON")};
24+
return schema;
2425
} else {
2526
return fallback(identifier);
2627
}

test/compiler/canonicalizer_test.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
#include <sourcemeta/core/test.h>
44
#include <sourcemeta/jsonbinpack/compiler.h>
55

6-
#include <optional> // std::optional
7-
#include <string> // std::string
6+
#include <string> // std::string
87

98
static auto test_resolver(std::string_view identifier)
10-
-> std::optional<sourcemeta::core::JSON> {
9+
-> sourcemeta::blaze::SchemaResolverResult {
1110
if (identifier == "https://jsonbinpack.sourcemeta.com/draft/unknown") {
12-
return sourcemeta::core::parse_json(R"JSON({
11+
static const auto schema{sourcemeta::core::parse_json(R"JSON({
1312
"$schema": "https://jsonbinpack.sourcemeta.com/draft/unknown",
1413
"$id": "https://jsonbinpack.sourcemeta.com/draft/unknown"
15-
})JSON");
14+
})JSON")};
15+
return schema;
1616
} else {
1717
return sourcemeta::blaze::schema_resolver(identifier);
1818
}

vendor/blaze/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/config.cmake.in

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/ports/javascript/describe.mjs

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/schemas/canonical-draft4.json

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/src/alterschema/common/orphan_definitions.h

Lines changed: 22 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/blaze/src/alterschema/include/sourcemeta/blaze/alterschema.h

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)