@finema/finework-layer 0.2.104 → 0.2.105

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.105](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.104...0.2.105) (2026-01-08)
4
+
5
+ ### Bug Fixes
6
+
7
+ * correct date handling in TimeFromNow component for accurate distance calculation ([c6335f5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c6335f532f0fb4acc58730d44ab69fdf4852e433))
8
+
3
9
  ## [0.2.104](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.103...0.2.104) (2026-01-07)
4
10
 
5
11
  ### Features
@@ -24,10 +24,11 @@ const getValue = computed(() => {
24
24
  ? locales.th
25
25
  : locales.enUS
26
26
 
27
- const daysDiff = differenceInDays(new Date(), props.value)
27
+ const targetDate = new Date(props.value)
28
+ const daysDiff = differenceInDays(new Date(), targetDate)
28
29
 
29
30
  if (daysDiff <= 6) {
30
- return formatDistanceToNow(props.value, {
31
+ return formatDistanceToNow(targetDate, {
31
32
  addSuffix: true,
32
33
  locale,
33
34
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.104",
4
+ "version": "0.2.105",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",