Compare commits

..

11 Commits

Author SHA1 Message Date
Hassan Ben Jobrane
236996a903 Merge pull request #2293 from nhost/changeset-release/main
chore: update versions
2023-10-02 13:01:48 +02:00
github-actions[bot]
5d0936bb93 chore: update versions 2023-10-02 10:38:35 +00:00
Hassan Ben Jobrane
733c212f2d Merge pull request #2291 from nhost/chore/announcement/node18
chore: node18 announcement
2023-10-02 12:35:53 +02:00
Hassan Ben Jobrane
8b47549189 Merge pull request #2286 from nhost/chore/ci/disable-github-releases
chore(ci): set createGithubReleases to false
2023-10-02 12:26:10 +02:00
Hassan Ben Jobrane
3c9c1025ce Merge pull request #2287 from nhost/fix/vue-sdk/nested-unref
fix(vue-sdk): correctly unref arrays
2023-10-02 12:25:14 +02:00
Hassan Ben Jobrane
3e46d3873c chore: add changeset 2023-10-02 10:50:46 +01:00
Hassan Ben Jobrane
4cf8820d72 chore: open announcement link in a new tab 2023-10-02 10:39:15 +01:00
Hassan Ben Jobrane
02a11184fb chore: change announcement link 2023-10-02 10:38:04 +01:00
Hassan Ben Jobrane
7214d47cc7 chore: add changeset 2023-09-30 17:54:42 +01:00
Hassan Ben Jobrane
238b77baad fix(vue): correctly unref arrays 2023-09-30 17:53:05 +01:00
Hassan Ben Jobrane
81b8e538b4 chore(ci): set createGithubReleases to false 2023-09-29 17:12:21 +01:00
8 changed files with 24 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ jobs:
commit: 'chore: update versions' commit: 'chore: update versions'
title: 'chore: update versions' title: 'chore: update versions'
publish: pnpm run release publish: pnpm run release
createGithubReleases: true createGithubReleases: false
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,5 +1,11 @@
# @nhost/dashboard # @nhost/dashboard
## 0.20.21
### Patch Changes
- 3e46d3873: chore: update link to node18 announcement
## 0.20.20 ## 0.20.20
### Patch Changes ### Patch Changes

View File

@@ -1,6 +1,6 @@
{ {
"name": "@nhost/dashboard", "name": "@nhost/dashboard",
"version": "0.20.20", "version": "0.20.21",
"private": true, "private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",

View File

@@ -38,7 +38,7 @@ function Announcement(
<span /> <span />
<div className="flex items-center self-center truncate"> <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"> <Text className="cursor-pointer truncate hover:underline">
{children} {children}
</Text> </Text>

View File

@@ -38,7 +38,7 @@ export interface AnnouncementContextProps {
// Note: You can define the active announcement here. // Note: You can define the active announcement here.
const announcement: AnnouncementType = { const announcement: AnnouncementType = {
id: 'node-18', id: 'node-18',
href: 'https://github.com/nhost/nhost/discussions/2239', href: 'https://github.com/nhost/nhost/discussions/2288',
content: content:
"Starting October 1st, we're upgrading to Node.js 18 for improved performance, security, and stability. Learn more.", "Starting October 1st, we're upgrading to Node.js 18 for improved performance, security, and stability. Learn more.",
}; };

View File

@@ -1,5 +1,11 @@
# @nhost/vue # @nhost/vue
## 1.13.38
### Patch Changes
- 7214d47cc: fix(vue-sdk): correctly unref arrays
## 1.13.37 ## 1.13.37
### Patch Changes ### Patch Changes

View File

@@ -1,6 +1,6 @@
{ {
"name": "@nhost/vue", "name": "@nhost/vue",
"version": "1.13.37", "version": "1.13.38",
"description": "Nhost Vue library", "description": "Nhost Vue library",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [

View File

@@ -14,12 +14,18 @@ export type NestedRefOfValue<T> = RefOrValue<{
export const nestedUnref = <T>(input: NestedRefOfValue<T>): T => { export const nestedUnref = <T>(input: NestedRefOfValue<T>): T => {
const result: NestedRefOfValue<T> = unref(input) 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( return Object.entries(result).reduce(
(aggr, [key, value]) => ({ ...aggr, [key]: nestedUnref(value as NestedRefOfValue<unknown>) }), (aggr, [key, value]) => ({ ...aggr, [key]: nestedUnref(value as NestedRefOfValue<unknown>) }),
{} as T {} as T
) )
} else { } else {
// For non-object and non-array values, return the result as is.
return result return result
} }
} }