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