@learncard/render-method-plugin 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32173,7 +32173,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32173
32173
  verificationMethod: external_exports2.string(),
32174
32174
  jws: external_exports2.string().optional()
32175
32175
  }).catchall(external_exports2.any()).superRefine((proof, ctx) => {
32176
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
32176
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
32177
+ // Keep the prior requirement for legacy and unknown proof suites.
32178
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
32179
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
32180
+ (proof.type !== "DataIntegrityProof" || ![
32181
+ "ecdsa-rdfc-2019",
32182
+ "ecdsa-jcs-2019",
32183
+ "ecdsa-sd-2023",
32184
+ "eddsa-rdfc-2022",
32185
+ "eddsa-jcs-2022",
32186
+ "bbs-2023"
32187
+ ].includes(proof.cryptosuite))) {
32177
32188
  ctx.addIssue({
32178
32189
  code: "custom",
32179
32190
  path: ["created"],
@@ -35770,7 +35781,18 @@ var ProofValidator = external_exports.object({
35770
35781
  verificationMethod: external_exports.string(),
35771
35782
  jws: external_exports.string().optional()
35772
35783
  }).catchall(external_exports.any()).superRefine((proof, ctx) => {
35773
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
35784
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
35785
+ // Keep the prior requirement for legacy and unknown proof suites.
35786
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
35787
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
35788
+ (proof.type !== "DataIntegrityProof" || ![
35789
+ "ecdsa-rdfc-2019",
35790
+ "ecdsa-jcs-2019",
35791
+ "ecdsa-sd-2023",
35792
+ "eddsa-rdfc-2022",
35793
+ "eddsa-jcs-2022",
35794
+ "bbs-2023"
35795
+ ].includes(proof.cryptosuite))) {
35774
35796
  ctx.addIssue({
35775
35797
  code: "custom",
35776
35798
  path: ["created"],