Skip to content

Commit

Permalink
Merge upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sync Fork committed Oct 3, 2023
1 parent f498a3d commit f9d553b
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 5 deletions.
6 changes: 6 additions & 0 deletions dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nhost/dashboard

## 0.20.21

### Patch Changes

- 3e46d3873: chore: update link to node18 announcement

## 0.20.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.20.20",
"version": "0.20.21",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Announcement(
<span />

<div className="flex items-center self-center truncate">
<a href={href}>
<a href={href} target="_blank" rel="noopener noreferrer">
<Text className="cursor-pointer truncate hover:underline">
{children}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface AnnouncementContextProps {
// Note: You can define the active announcement here.
const announcement: AnnouncementType = {
id: 'node-18',
href: 'https://github.com/nhost/nhost/discussions/2239',
href: 'https://github.com/nhost/nhost/discussions/2288',
content:
"Starting October 1st, we're upgrading to Node.js 18 for improved performance, security, and stability. Learn more.",
};
Expand Down
6 changes: 6 additions & 0 deletions packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nhost/vue

## 1.13.38

### Patch Changes

- 7214d47cc: fix(vue-sdk): correctly unref arrays

## 1.13.37

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nhost/vue",
"version": "1.13.37",
"version": "1.13.38",
"description": "Nhost Vue library",
"license": "MIT",
"keywords": [
Expand Down
8 changes: 7 additions & 1 deletion packages/vue/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ export type NestedRefOfValue<T> = RefOrValue<{

export const nestedUnref = <T>(input: NestedRefOfValue<T>): T => {
const result: NestedRefOfValue<T> = unref(input)
if (result && typeof result === 'object') {

if (Array.isArray(result)) {
// If the result is an array, recursively process each element.
return result.map((value) => nestedUnref(value as NestedRefOfValue<unknown>)) as T
} else if (result && typeof result === 'object') {
// If the result is an object, recursively process its properties.
return Object.entries(result).reduce(
(aggr, [key, value]) => ({ ...aggr, [key]: nestedUnref(value as NestedRefOfValue<unknown>) }),
{} as T
)
} else {
// For non-object and non-array values, return the result as is.
return result
}
}

0 comments on commit f9d553b

Please sign in to comment.