@ardatan/relay-compiler 12.1.1 → 12.1.2

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.
@@ -2091,7 +2091,7 @@ var CompilerContext = /*#__PURE__*/function () {
2091
2091
  };
2092
2092
 
2093
2093
  _proto.withMutations = function withMutations(fn) {
2094
- var mutableCopy = this._update(this._documents.asMutable());
2094
+ var mutableCopy = this._update(this._documents);
2095
2095
 
2096
2096
  mutableCopy._isMutable = true;
2097
2097
  var result = fn(mutableCopy);
@@ -163,11 +163,11 @@ class CompilerContext {
163
163
  }
164
164
 
165
165
  withMutations(fn: CompilerContext => CompilerContext): CompilerContext {
166
- const mutableCopy = this._update(this._documents.asMutable());
166
+ const mutableCopy = this._update(this._documents);
167
167
  mutableCopy._isMutable = true;
168
168
  const result = fn(mutableCopy);
169
169
  result._isMutable = false;
170
- result._documents = result._documents.asImmutable();
170
+ result._documents = result._documents;
171
171
  return this._documents === result._documents ? this : result;
172
172
  }
173
173
 
@@ -136,12 +136,12 @@ var CompilerContext = /*#__PURE__*/function () {
136
136
  };
137
137
 
138
138
  _proto.withMutations = function withMutations(fn) {
139
- var mutableCopy = this._update(this._documents.asMutable());
139
+ var mutableCopy = this._update(this._documents);
140
140
 
141
141
  mutableCopy._isMutable = true;
142
142
  var result = fn(mutableCopy);
143
143
  result._isMutable = false;
144
- result._documents = result._documents.asImmutable();
144
+ result._documents = result._documents;
145
145
  return this._documents === result._documents ? this : result;
146
146
  };
147
147
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ardatan/relay-compiler",
3
3
  "description": "A compiler tool for building GraphQL-driven applications.",
4
- "version": "12.1.1",
4
+ "version": "12.1.2",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"