@jsforce/jsforce-node 3.6.6 → 3.8.0

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/lib/VERSION.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "3.6.6";
1
+ declare const _default: "3.8.0";
2
2
  export default _default;
package/lib/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '3.6.6';
3
+ exports.default = '3.8.0';
@@ -121,9 +121,10 @@ export declare class MetadataApi<S extends Schema> {
121
121
  */
122
122
  deploy(zipInput: Readable | Buffer | string, options?: Partial<DeployOptions>): DeployResultLocator<S>;
123
123
  /**
124
- * Checks the status of declarative metadata call deploy()
124
+ * Checks the status of declarative metadata call deploy(), using either
125
+ * SOAP or REST APIs. SOAP is the default.
125
126
  */
126
- checkDeployStatus(asyncProcessId: string, includeDetails?: boolean): Promise<DeployResult>;
127
+ checkDeployStatus(asyncProcessId: string, includeDetails?: boolean, rest?: boolean): Promise<DeployResult>;
127
128
  cancelDeploy(id: string): Promise<CancelDeployResult>;
128
129
  }
129
130
  /**
@@ -254,13 +254,20 @@ class MetadataApi {
254
254
  return new DeployResultLocator(this, res);
255
255
  }
256
256
  /**
257
- * Checks the status of declarative metadata call deploy()
257
+ * Checks the status of declarative metadata call deploy(), using either
258
+ * SOAP or REST APIs. SOAP is the default.
258
259
  */
259
- checkDeployStatus(asyncProcessId, includeDetails = false) {
260
- return this._invoke('checkDeployStatus', {
261
- asyncProcessId,
262
- includeDetails,
263
- }, schema_1.ApiSchemas.DeployResult);
260
+ async checkDeployStatus(asyncProcessId, includeDetails = false, rest = false) {
261
+ if (rest) {
262
+ const url = `/metadata/deployRequest/${asyncProcessId}${includeDetails ? '?includeDetails=true' : ''}`;
263
+ return (await this._conn.requestGet(url)).deployResult;
264
+ }
265
+ else {
266
+ return this._invoke('checkDeployStatus', {
267
+ asyncProcessId,
268
+ includeDetails,
269
+ }, schema_1.ApiSchemas.DeployResult);
270
+ }
264
271
  }
265
272
  async cancelDeploy(id) {
266
273
  return this._invoke('cancelDeploy', { id });
package/lib/query.d.ts CHANGED
@@ -99,6 +99,10 @@ export type QueryUpdateOptions = {
99
99
  allowBulk?: boolean;
100
100
  bulkThreshold?: number;
101
101
  bulkApiVersion?: BulkApiVersion;
102
+ /**
103
+ * Skip record template evaluation.
104
+ */
105
+ skipRecordTemplateEval?: boolean;
102
106
  };
103
107
  /**
104
108
  * Query
package/lib/query.js CHANGED
@@ -651,7 +651,7 @@ class Query extends events_1.EventEmitter {
651
651
  }
652
652
  const updateStream = typeof mapping === 'function'
653
653
  ? record_stream_1.default.map(mapping)
654
- : record_stream_1.default.recordMapStream(mapping);
654
+ : record_stream_1.default.recordMapStream(mapping, options.skipRecordTemplateEval);
655
655
  // Set the threshold number to pass to bulk API
656
656
  const thresholdNum = options.allowBulk === false
657
657
  ? -1
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "database.com"
11
11
  ],
12
12
  "homepage": "http://github.com/jsforce/jsforce",
13
- "version": "3.6.6",
13
+ "version": "3.8.0",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git://github.com/jsforce/jsforce.git"
@@ -207,7 +207,7 @@
207
207
  },
208
208
  "devDependencies": {
209
209
  "@babel/cli": "^7.24.8",
210
- "@babel/core": "^7.23.0",
210
+ "@babel/core": "^7.26.10",
211
211
  "@babel/plugin-transform-runtime": "^7.24.7",
212
212
  "@babel/preset-env": "^7.22.20",
213
213
  "@babel/preset-typescript": "^7.23.0",
@@ -224,7 +224,7 @@
224
224
  "@typescript-eslint/parser": "^6.7.5",
225
225
  "archiver": "^5.1.0",
226
226
  "assert": "^2.0.0",
227
- "babel-loader": "^9.1.3",
227
+ "babel-loader": "^9.2.1",
228
228
  "babel-preset-power-assert": "^3.0.0",
229
229
  "buffer": "^6.0.3",
230
230
  "conditional-type-checks": "^1.0.5",
@@ -232,7 +232,7 @@
232
232
  "eslint": "^8.51.0",
233
233
  "eslint-config-prettier": "^6.15.0",
234
234
  "eslint-plugin-import": "^2.29.1",
235
- "eslint-plugin-jsdoc": "^48.2.3",
235
+ "eslint-plugin-jsdoc": "^48.11.0",
236
236
  "eslint-plugin-prettier": "^3.1.4",
237
237
  "jest": "^29.5.0",
238
238
  "jsforce-ajax-proxy": "^2.0.0",