Skip to content

Commit 0f1450f

Browse files
authored
format changelog (#1362)
1 parent 2eed1fb commit 0f1450f

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

packages/salesforce/CHANGELOG.md

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,52 +17,53 @@
1717
- Removed `bulkQuery()` function in favor of `bulk1.query()` and
1818
`bulk2.query()`
1919

20-
# Migration Guide
20+
#### Migration Guide
2121

22-
The legacy `bulk()` and `bulkQuery()` functions have been replaced with
23-
`bulk1` and `bulk2` APIs that provide better control and clarity:
22+
The legacy `bulk()` and `bulkQuery()` functions have been replaced with `bulk1`
23+
and `bulk2` APIs that provide better control and clarity:
2424

25-
## Bulk Operations
25+
##### Bulk Operations
2626

27-
**Before:**
27+
**Before:**
2828

29-
````javascript
30-
bulk('Account', 'insert', records, options);
31-
bulk('Account', 'update', records, options);
32-
bulk('Account', 'upsert', records, { extIdField: 'Id__c' });
33-
bulk('Account', 'delete', records, options);
34-
```
35-
**After:**
29+
```javascript
30+
bulk('Account', 'insert', records, options);
31+
bulk('Account', 'update', records, options);
32+
bulk('Account', 'upsert', records, { extIdField: 'Id__c' });
33+
bulk('Account', 'delete', records, options);
34+
```
35+
36+
**After:**
3637

37-
```javascript
38-
// Bulk API 1.0 - More reliable, supports failOnError
39-
bulk1.insert('Account', records, { failOnError: true });
40-
bulk1.update('Account', records, { batchSize: 5000 });
41-
bulk1.upsert('Account', 'Id__c', records);
42-
bulk1.destroy('Account', records);
38+
```javascript
39+
// Bulk API 1.0 - More reliable, supports failOnError
40+
bulk1.insert('Account', records, { failOnError: true });
41+
bulk1.update('Account', records, { batchSize: 5000 });
42+
bulk1.upsert('Account', 'Id__c', records);
43+
bulk1.destroy('Account', records);
4344

44-
// Bulk API 2.0 - Faster performance, simplified error handling
45-
bulk2.insert('Account', records);
46-
bulk2.update('Account', records);
47-
bulk2.upsert('Account', 'Id__c', records);
48-
bulk2.destroy('Account', records);
49-
````
45+
// Bulk API 2.0 - Faster performance, simplified error handling
46+
bulk2.insert('Account', records);
47+
bulk2.update('Account', records);
48+
bulk2.upsert('Account', 'Id__c', records);
49+
bulk2.destroy('Account', records);
50+
```
5051

51-
### Bulk Queries
52+
##### Bulk Queries
5253

53-
**Before**
54+
**Before**
5455

55-
```js
56-
bulkQuery('select Id, Name from Account');
57-
```
56+
```js
57+
bulkQuery('select Id, Name from Account');
58+
```
5859

59-
**After**
60+
**After**
6061

61-
```js
62-
bulk1.query('select Id, Name from Account');
63-
// or
64-
bulk2.query('select Id, Name from Account');
65-
```
62+
```js
63+
bulk1.query('select Id, Name from Account');
64+
// or
65+
bulk2.query('select Id, Name from Account');
66+
```
6667

6768
### Patch Changes
6869

0 commit comments

Comments
 (0)