@veritree/ui 0.76.1-3 → 0.76.1-5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.76.1-3",
3
+ "version": "0.76.1-5",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -107,9 +107,15 @@ export default {
107
107
  },
108
108
  },
109
109
 
110
+ // The date-fns library uses 'yyyy' for year and 'dd' for day, instead of 'YYYY' and 'DD' respectively,
111
+ // following the Unicode Technical Standard #35 for date format patterns.
112
+ // This is different from the format patterns used in the JavaScript Date object, which uses 'YYYY' and 'DD'.
113
+ // For more information, refer to the date-fns documentation: https://date-fns.org/v3.6.0/docs/Unicode-Tokens
114
+ // Using useAdditionalDayOfYearTokens and useAdditionalWeekYearTokens allows the date-fns library to use 'YYYY' and 'DD'.
110
115
  valueModelFormatted() {
111
116
  return format(this.value, this.format, {
112
117
  useAdditionalDayOfYearTokens: true,
118
+ useAdditionalWeekYearTokens: true,
113
119
  });
114
120
  },
115
121