@bcts/envelope-pattern 1.0.0-alpha.20 → 1.0.0-alpha.21

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.
Files changed (52) hide show
  1. package/LICENSE +2 -1
  2. package/README.md +1 -1
  3. package/dist/index.cjs +20 -0
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts.map +1 -1
  7. package/dist/index.iife.js +20 -0
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.mjs +20 -0
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +11 -22
  12. package/src/error.ts +4 -0
  13. package/src/format.ts +4 -0
  14. package/src/index.ts +4 -0
  15. package/src/parse/index.ts +4 -0
  16. package/src/parse/token.ts +4 -0
  17. package/src/parse/utils.ts +4 -0
  18. package/src/pattern/dcbor-integration.ts +4 -0
  19. package/src/pattern/index.ts +4 -0
  20. package/src/pattern/leaf/array-pattern.ts +4 -0
  21. package/src/pattern/leaf/bool-pattern.ts +4 -0
  22. package/src/pattern/leaf/byte-string-pattern.ts +4 -0
  23. package/src/pattern/leaf/cbor-pattern.ts +4 -0
  24. package/src/pattern/leaf/date-pattern.ts +4 -0
  25. package/src/pattern/leaf/index.ts +4 -0
  26. package/src/pattern/leaf/known-value-pattern.ts +4 -0
  27. package/src/pattern/leaf/map-pattern.ts +4 -0
  28. package/src/pattern/leaf/null-pattern.ts +4 -0
  29. package/src/pattern/leaf/number-pattern.ts +4 -0
  30. package/src/pattern/leaf/tagged-pattern.ts +4 -0
  31. package/src/pattern/leaf/text-pattern.ts +4 -0
  32. package/src/pattern/matcher.ts +4 -0
  33. package/src/pattern/meta/and-pattern.ts +4 -0
  34. package/src/pattern/meta/any-pattern.ts +4 -0
  35. package/src/pattern/meta/capture-pattern.ts +4 -0
  36. package/src/pattern/meta/group-pattern.ts +4 -0
  37. package/src/pattern/meta/index.ts +4 -0
  38. package/src/pattern/meta/not-pattern.ts +4 -0
  39. package/src/pattern/meta/or-pattern.ts +4 -0
  40. package/src/pattern/meta/search-pattern.ts +4 -0
  41. package/src/pattern/meta/traverse-pattern.ts +4 -0
  42. package/src/pattern/structure/assertions-pattern.ts +4 -0
  43. package/src/pattern/structure/digest-pattern.ts +4 -0
  44. package/src/pattern/structure/index.ts +4 -0
  45. package/src/pattern/structure/leaf-structure-pattern.ts +4 -0
  46. package/src/pattern/structure/node-pattern.ts +4 -0
  47. package/src/pattern/structure/object-pattern.ts +4 -0
  48. package/src/pattern/structure/obscured-pattern.ts +4 -0
  49. package/src/pattern/structure/predicate-pattern.ts +4 -0
  50. package/src/pattern/structure/subject-pattern.ts +4 -0
  51. package/src/pattern/structure/wrapped-pattern.ts +4 -0
  52. package/src/pattern/vm.ts +4 -0
package/LICENSE CHANGED
@@ -1,5 +1,6 @@
1
1
  Copyright © 2023-2026 Blockchain Commons, LLC
2
- Copyright © 2025-2026 Leonardo Amoroso Custodio
2
+ Copyright © 2025-2026 Parity Technologies
3
+
3
4
 
4
5
  Redistribution and use in source and binary forms, with or without modification,
5
6
  are permitted provided that the following conditions are met:
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Introduction
6
6
 
7
- `@bcts/envelope-pattern` provides a powerful pattern matching language for querying and extracting data from [Gordian Envelope](https://github.com/leonardocustodio/bcts/tree/main/packages/envelope) structures. It extends the dCBOR pattern matching capabilities with envelope-specific patterns for subjects, predicates, objects, assertions, and wrapped envelopes.
7
+ `@bcts/envelope-pattern` provides a powerful pattern matching language for querying and extracting data from [Gordian Envelope](https://github.com/paritytech/bcts/tree/main/packages/envelope) structures. It extends the dCBOR pattern matching capabilities with envelope-specific patterns for subjects, predicates, objects, assertions, and wrapped envelopes.
8
8
 
9
9
  The pattern language is designed to be expressive yet concise, allowing you to match complex nested envelope structures with simple pattern expressions.
10
10
 
package/dist/index.cjs CHANGED
@@ -1239,6 +1239,10 @@ var DatePattern = class DatePattern {
1239
1239
  //#endregion
1240
1240
  //#region src/pattern/leaf/array-pattern.ts
1241
1241
  /**
1242
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1243
+ * Copyright © 2025-2026 Parity Technologies
1244
+ *
1245
+ *
1242
1246
  * @bcts/envelope-pattern - Array pattern matching
1243
1247
  *
1244
1248
  * This is a 1:1 TypeScript port of bc-envelope-pattern-rust array_pattern.rs
@@ -1629,6 +1633,10 @@ function simpleStringHash$2(str) {
1629
1633
  //#endregion
1630
1634
  //#region src/pattern/leaf/tagged-pattern.ts
1631
1635
  /**
1636
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1637
+ * Copyright © 2025-2026 Parity Technologies
1638
+ *
1639
+ *
1632
1640
  * @bcts/envelope-pattern - Tagged pattern matching
1633
1641
  *
1634
1642
  * This is a 1:1 TypeScript port of bc-envelope-pattern-rust tagged_pattern.rs
@@ -1783,6 +1791,10 @@ function simpleStringHash$1(str) {
1783
1791
  //#endregion
1784
1792
  //#region src/pattern/leaf/cbor-pattern.ts
1785
1793
  /**
1794
+ * Copyright © 2023-2026 Blockchain Commons, LLC
1795
+ * Copyright © 2025-2026 Parity Technologies
1796
+ *
1797
+ *
1786
1798
  * @bcts/envelope-pattern - CBOR pattern matching
1787
1799
  *
1788
1800
  * This is a 1:1 TypeScript port of bc-envelope-pattern-rust cbor_pattern.rs
@@ -5586,6 +5598,10 @@ registerTraverseDispatchFunctions(patternPathsWithCaptures, patternCompile, patt
5586
5598
  //#endregion
5587
5599
  //#region src/parse/token.ts
5588
5600
  /**
5601
+ * Copyright © 2023-2026 Blockchain Commons, LLC
5602
+ * Copyright © 2025-2026 Parity Technologies
5603
+ *
5604
+ *
5589
5605
  * @bcts/envelope-pattern - Token types and Lexer
5590
5606
  *
5591
5607
  * This is a 1:1 TypeScript port of bc-envelope-pattern-rust token.rs
@@ -6326,6 +6342,10 @@ var Lexer = class {
6326
6342
  //#endregion
6327
6343
  //#region src/parse/index.ts
6328
6344
  /**
6345
+ * Copyright © 2023-2026 Blockchain Commons, LLC
6346
+ * Copyright © 2025-2026 Parity Technologies
6347
+ *
6348
+ *
6329
6349
  * @bcts/envelope-pattern - Parser entry point
6330
6350
  *
6331
6351
  * This is a 1:1 TypeScript port of bc-envelope-pattern-rust parse/mod.rs