Skip to content

Commit f14f1b4

Browse files
releases/v2.9.0
- [9b43790][michaeljymsgutierrez]: Updated release version from v2.8.0 to v2.9.0 - 2026-05-07 22:14:28 - [fcbec6a][Chael Gutierrez]: features/support-string-collection-record-id (#238) - 2026-05-07 22:03:17
1 parent 15e444e commit f14f1b4

4 files changed

Lines changed: 17 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<img src="https://github.com/michaeljymsgutierrez/arm-js-library/actions/workflows/ci-cd.yml/badge.svg" alt="cicd-badge-logo" />
1010
</a>
1111
<a href="https://www.npmjs.com/package/arm-js-library">
12-
<img src="https://img.shields.io/badge/npm_version-2.8.0-blue" alt="npm-badge-logo" />
12+
<img src="https://img.shields.io/badge/npm_version-2.9.0-blue" alt="npm-badge-logo" />
1313
</a>
1414
<a href="https://github.com/michaeljymsgutierrez/arm-js-library?tab=MIT-1-ov-file">
1515
<img src="https://img.shields.io/badge/license-MIT-green" alt="license-badge-logo" />
@@ -604,7 +604,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
604604
"type": "addresses",
605605
"attributes": {
606606
"address1": "Test Address 1",
607-
"address2": "171872.8.0222",
607+
"address2": "171872.9.0222",
608608
"kind": "office",
609609
"label": "Anabu Hills",
610610
"latitude": "14.394261",

packages/dist/arm-js-library.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import axios from "axios";
22
import _ from "lodash";
33
import * as mobx from "mobx";
4-
import { v1, NIL } from "uuid";
4+
import { v1, validate, NIL } from "uuid";
55
import md5 from "md5";
66
import qs from "qs";
77
/**
88
* ARM JavaScript Library
99
*
10-
* Version: 2.8.0
10+
* Version: 2.9.0
1111
* Date: 2024-05-09 2:19PM GMT+8
1212
*
1313
* @author Michael Jyms Gutierrez
@@ -175,7 +175,7 @@ class ApiResourceManager {
175175
setProperty(
176176
axios,
177177
["defaults", "headers", "common", "X-Powered-By"],
178-
"ARM JS Library/2.8.0"
178+
"ARM JS Library/2.9.0"
179179
);
180180
}
181181
/**
@@ -540,7 +540,10 @@ Fix: Try adding ${collectionName} on your ARM config initialization.`;
540540
}
541541
);
542542
const collectionRecordId = getProperty(collectionRecord, "id");
543-
const isCollectionRecordIdValid = isNumber(collectionRecordId);
543+
const isCollectionRecordIdValid = isEqual(
544+
validate(collectionRecordId),
545+
false
546+
);
544547
return this._request({
545548
resourceMethod: isCollectionRecordIdValid ? "put" : "post",
546549
resourceName: collectionName,

packages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arm-js-library",
3-
"version": "2.8.0",
3+
"version": "2.9.0",
44
"description": "API Resource Manager",
55
"type": "module",
66
"files": [

packages/src/lib/api-resource-manager.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* ARM JavaScript Library
33
*
4-
* Version: 2.8.0
4+
* Version: 2.9.0
55
* Date: 2024-05-09 2:19PM GMT+8
66
*
77
* @author Michael Jyms Gutierrez
@@ -29,7 +29,7 @@
2929
import axios from 'axios'
3030
import _ from 'lodash'
3131
import * as mobx from 'mobx'
32-
import { v1 as uuidv1, NIL as NIL_UUID } from 'uuid'
32+
import { v1 as uuidv1, validate as uuidValidate, NIL as NIL_UUID } from 'uuid'
3333
import md5 from 'md5'
3434
import qs from 'qs'
3535

@@ -285,7 +285,7 @@ export default class ApiResourceManager {
285285
setProperty(
286286
axios,
287287
['defaults', 'headers', 'common', 'X-Powered-By'],
288-
'ARM JS Library/2.8.0',
288+
'ARM JS Library/2.9.0',
289289
)
290290
}
291291

@@ -681,7 +681,10 @@ export default class ApiResourceManager {
681681
},
682682
)
683683
const collectionRecordId = getProperty(collectionRecord, 'id')
684-
const isCollectionRecordIdValid = isNumber(collectionRecordId)
684+
const isCollectionRecordIdValid = isEqual(
685+
uuidValidate(collectionRecordId),
686+
false,
687+
)
685688

686689
return this._request({
687690
resourceMethod: isCollectionRecordIdValid ? 'put' : 'post',

0 commit comments

Comments
 (0)