@xh/hoist 70.0.0-SNAPSHOT.1729191582998 → 70.0.0-SNAPSHOT.1729537485287

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## 70.0.0-SNAPSHOT - unreleased
4
4
 
5
+ ### 🐞 Bug Fixes
6
+
7
+ * Fixed `genDisplayName` method to use reg-ex that works on iOS Safari 16 (used by BB Access)
8
+ * Fixed import of fontawesome. xmlFile icon is only available in > v6.5.0
9
+
5
10
  ## 69.0.0 - 2024-10-17
6
11
 
7
12
  ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - Hoist core update)
package/data/Field.ts CHANGED
@@ -173,6 +173,9 @@ export type FieldType = (typeof FieldType)[keyof typeof FieldType];
173
173
  * @returns fieldName transformed into user-facing / longer name for display.
174
174
  */
175
175
  export function genDisplayName(fieldName: string): string {
176
- // Handle common cases of "id" -> "ID" and "foo_id" -> "Foo ID" (vs "Foo Id")
177
- return startCase(fieldName).replace(/(^| )Id\b/g, '$1ID');
176
+ const ret = startCase(fieldName);
177
+ // Handle common cases of "id" -> "ID" (vs "Id") and "foo_id" -> "Foo ID" (vs "Foo Id")
178
+ // safely by avoiding using grouping in a regex, which is not supported in older versions
179
+ // of Safari Mobile (<16.4), which BlackBerry Access uses (16.0).
180
+ return ret.replace(/\bid\b/gi, 'ID');
178
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "70.0.0-SNAPSHOT.1729191582998",
3
+ "version": "70.0.0-SNAPSHOT.1729537485287",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -35,12 +35,12 @@
35
35
  "@blueprintjs/core": "^5.10.5",
36
36
  "@blueprintjs/datetime": "^5.3.7",
37
37
  "@blueprintjs/datetime2": "^2.3.7",
38
- "@fortawesome/fontawesome-pro": "^6.2.1",
39
- "@fortawesome/fontawesome-svg-core": "^6.2.1",
40
- "@fortawesome/pro-light-svg-icons": "^6.2.1",
41
- "@fortawesome/pro-regular-svg-icons": "^6.2.1",
42
- "@fortawesome/pro-solid-svg-icons": "^6.2.1",
43
- "@fortawesome/pro-thin-svg-icons": "^6.2.1",
38
+ "@fortawesome/fontawesome-pro": "^6.6.0",
39
+ "@fortawesome/fontawesome-svg-core": "^6.6.0",
40
+ "@fortawesome/pro-light-svg-icons": "^6.6.0",
41
+ "@fortawesome/pro-regular-svg-icons": "^6.6.0",
42
+ "@fortawesome/pro-solid-svg-icons": "^6.6.0",
43
+ "@fortawesome/pro-thin-svg-icons": "^6.6.0",
44
44
  "@fortawesome/react-fontawesome": "^0.2.0",
45
45
  "@onsenui/fastclick": "~1.1.1",
46
46
  "@popperjs/core": "~2.11.0",