orchid-orm 1.64.6 → 1.64.7

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/dist/index.js CHANGED
@@ -21,6 +21,7 @@ function createBaseTable({
21
21
  shape: pqb.emptyObject,
22
22
  data: pqb.emptyArray
23
23
  };
24
+ const instances = /* @__PURE__ */ new WeakMap();
24
25
  const base = (_a = class {
25
26
  constructor() {
26
27
  this.columns = defaultColumns;
@@ -65,7 +66,12 @@ function createBaseTable({
65
66
  );
66
67
  }
67
68
  static instance() {
68
- return this._instance ?? (this._instance = new this());
69
+ let instance = instances.get(this);
70
+ if (!instance) {
71
+ instance = new this();
72
+ instances.set(this, instance);
73
+ }
74
+ return instance;
69
75
  }
70
76
  clone() {
71
77
  return this;