Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# vite-plus preview build registry bridge (auto-added by vp)
registry=https://registry-bridge.viteplus.dev/
min-release-age=1
min-release-age-exclude=vite-plus,@voidzero-dev/*,@oxc-project/*,@oxlint/*,@oxfmt/*,@oxlint-tsgolint/*,oxlint,oxfmt,oxlint-tsgolint
Comment on lines +3 to +4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

In npm (the package manager used in this repository, as indicated by package-lock.json), the min-release-age configuration is supported, but package exclusions via min-release-age-exclude (or minimum-release-age-exclude) are not supported.\n\nThe original PR that proposed exclusions (npm/cli#8825) was rejected in favor of a simpler implementation (npm/cli#8965), and the exclusion feature is currently tracked under the open issue npm/cli#8994.\n\nBecause npm does not support exclusions, it will apply the min-release-age=1 (1 day) gate to all packages, including vite-plus and @voidzero-dev/*. Since the prerelease commit builds are freshly published, npm install or npm ci will fail to resolve them.\n\nTo allow the prerelease smoke-test to pass, you will need to temporarily disable the release age gate by commenting out or removing these lines, or running the installation with --min-release-age=0.

# min-release-age=1
# min-release-age-exclude=vite-plus,@voidzero-dev/*,@oxc-project/*,@oxlint/*,@oxfmt/*,@oxlint-tsgolint/*,oxlint,oxfmt,oxlint-tsgolint

607 changes: 299 additions & 308 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
"prepare": "vp config"
},
"devDependencies": {
"@vitest/coverage-v8": ">=4.1.9",
"vite-plus": ">=0.2.1"
"@vitest/coverage-v8": "4.1.9",
"vite-plus": "0.0.0-commit.1d7ba811f0e456640b0e761e8e8acf77d1ad3251",
"vitest": "4.1.9"
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core"
"vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.1d7ba811f0e456640b0e761e8e8acf77d1ad3251",
"vitest": "4.1.9"
},
"engines": {
"node": ">=26.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/App/__tests__/coverage.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterEach, describe, expect, it, vi } from 'vitest'
import { afterEach, describe, expect, it, vi } from 'vite-plus/test'

import { createOnErrorHandler } from '../../App'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/App/__tests__/index.ui.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { setMock } from '@faasjs/react'
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { useEffect } from 'react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { App } from '../../App'
import { useFaas } from '../../FaasDataWrapper'
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Blank/__tests__/index.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Blank } from '../../Blank'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Config/__tests__/index.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

import { Blank } from '../../Blank'
import { ConfigProvider, useConfigContext } from '../../Config'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Description } from '../../Description'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Description } from '../../Description'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import {
Description,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { setMock } from '@faasjs/react'
import { render, screen } from '@testing-library/react'
import { beforeEach, describe, expect, it } from 'vitest'
import { beforeEach, describe, expect, it } from 'vite-plus/test'

import { Description } from '../../Description'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import dayjs from 'dayjs'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Description } from '../../Description'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import type { JSX } from 'react'
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

import { ErrorBoundary } from '../../ErrorBoundary'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare module '@faasjs/types' {
}

import { render, screen } from '@testing-library/react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'

import { FaasDataWrapper, withFaasData } from '../../FaasDataWrapper'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Form/__tests__/base.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Form } from '../../Form'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Form/__tests__/extend.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import { Input } from 'antd'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { type ExtendFormItemProps, Form, type FormProps } from '../../Form'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Form/__tests__/items.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { Input } from 'antd'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Form } from '../../Form'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Form/__tests__/submit.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setMock } from '@faasjs/react'
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Form } from '../../Form'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import type { FaasItemType } from '../../data'
import { Form } from '../../Form'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Form } from '../../Form'
import { FormItem } from '../../FormItem'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import type { FaasItemType } from '../../data'
import { Form } from '../../Form'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import type { UnionFaasItemProps } from '../../data'
import { Form } from '../../Form'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import type { FaasItemType } from '../../data'
import { FormItem } from '../../FormItem'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Loading } from '../../Loading'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/ajax.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'

import { Table } from '../../Table'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/base.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Table } from '../../Table'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import dayjs from 'dayjs'
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

import { createTableColumns } from '../column-builder'
import { FaasDataTable, Table } from '../table'
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/extend.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { type ExtendTableItemProps, Table, type TableProps } from '../../Table'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/faas.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'

import { Table } from '../../Table'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/items.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import dayjs from 'dayjs'
import { beforeEach, describe, expect, it } from 'vitest'
import { beforeEach, describe, expect, it } from 'vite-plus/test'

import type { UnionFaasItemElement, UnionFaasItemRender } from '../../data'
import { Table, type TableItemProps } from '../../Table'
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Table/__tests__/logic.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setMock } from '@faasjs/react'
import { render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

import { Table } from '../../Table'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Tabs/__tests__/index.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Tabs } from '../../Tabs'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/Title/__tests__/index.ui.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Title } from '../../Title'

Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/__tests__/dialog-hook-cases.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { act, render, screen } from '@testing-library/react'
import type { Dispatch, JSX, ReactNode, SetStateAction } from 'react'
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

type DialogProps = {
children?: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/data/__tests__/data.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dayjs from 'dayjs'
import { createElement } from 'react'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import {
cloneUnionFaasItemElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/ant-design/src/index/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import * as antDesign from '../../index'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertType, it } from 'vitest'
import { assertType, it } from 'vite-plus/test'

import type { useApp } from '../../useApp'
import { type useAppProps } from '../../useApp'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react'
import { ConfigProvider } from 'antd'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { useThemeToken } from '../../useThemeToken'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/define-api/__tests__/define-api.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Http, defineApi, type FuncRuntime } from '@faasjs/core'
import { streamToObject, z } from '@faasjs/utils'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { TestsAuthPlugin } from './auth-plugin'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
} from '@faasjs/core'
import { defineApi } from '@faasjs/core'
import { z } from '@faasjs/utils'
import { assertType, expect, it } from 'vitest'
import { assertType, expect, it } from 'vite-plus/test'

type CurrentUser = {
id: number
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/coverage.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Func, parseApiFilenameFromStack } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/fp.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Func, type InvokeData, type MountData, type Next, type Plugin } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/handler.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Func, type FuncRuntime } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/lifecycle.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Func, type InvokeData, type MountData, type Next, type Plugin } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/logger.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it, vi } from 'vite-plus/test'

import { Func } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/func/__tests__/plugins.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { Func, type InvokeData, type MountData, type Next, type Plugin } from '../..'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index/__tests__/types.types.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineApi, Func } from '@faasjs/core'
import { z } from '@faasjs/utils'
import { assertType, expect, it } from 'vitest'
import { assertType, expect, it } from 'vite-plus/test'

import { type Cookie, type FuncEventType, type FuncReturnType, type Session } from '../../index'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/middleware/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join } from 'node:path'

import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'

import { Server } from '../../server'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/middleware/__tests__/static.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync } from 'node:fs'
import { join } from 'node:path'

import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'

import { staticHandler } from '../../middleware'
import { Server } from '../../server'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/http/__tests__/cookie.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { streamToString } from '@faasjs/utils'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { createHttpFunc, createHttpHandler } from './helpers'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/http/__tests__/coverage.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Http } from '@faasjs/core'
import { streamToString } from '@faasjs/utils'
import { afterEach, describe, expect, it, vi } from 'vitest'
import { afterEach, describe, expect, it, vi } from 'vite-plus/test'

function createLogger() {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/http/__tests__/headers.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { streamToString } from '@faasjs/utils'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { createHttpHandler } from './helpers'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/http/__tests__/http.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Func, Http, HttpError, type Response } from '@faasjs/core'
import { streamToString } from '@faasjs/utils'
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'

import { createHttpFunc, createHttpHandler } from './helpers'

Expand Down
Loading
Loading