@xyo-network/boundwitness-builder 2.75.18 → 2.76.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.
package/src/Builder.ts CHANGED
@@ -11,8 +11,11 @@ import { Mutex } from 'async-mutex'
11
11
 
12
12
  export interface BoundWitnessBuilderConfig {
13
13
  /** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
14
+ /** @deprecated We will be removing support for inlinePayloads soon */
14
15
  readonly inlinePayloads?: boolean
16
+ /** @deprecated We will be removing support for meta soon */
15
17
  readonly meta?: boolean
18
+ /** @deprecated We will be removing support for timestamp soon */
16
19
  readonly timestamp?: boolean
17
20
  }
18
21
 
@@ -42,6 +45,9 @@ export class BoundWitnessBuilder<TBoundWitness extends BoundWitness<{ schema: st
42
45
  }
43
46
 
44
47
  async build(meta = false): Promise<[TBoundWitness, TPayload[], ModuleError[]]> {
48
+ if (meta) {
49
+ console.log('BoundWitnessBuilder: Calling build with meta=true will be disallowed soon')
50
+ }
45
51
  return await BoundWitnessBuilder._buildMutex.runExclusive(async () => {
46
52
  const hashableFields = await this.hashableFields()
47
53
  const _hash = await BoundWitnessWrapper.hashAsync(hashableFields)
@@ -170,6 +176,8 @@ export class BoundWitnessBuilder<TBoundWitness extends BoundWitness<{ schema: st
170
176
  }
171
177
 
172
178
  private inlinePayloads() {
179
+ console.log('BoundWitnessBuilder: Using inlinePayloads will soon be disallowed')
180
+
173
181
  return this._payloads.map<TPayload>((payload, index) => {
174
182
  return {
175
183
  ...payload,