-
Notifications
You must be signed in to change notification settings - Fork 201
chore: bump upstream version #655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,16 +43,18 @@ | |||||||||||||
| "*": "prettier --write --ignore-unknown" | ||||||||||||||
| }, | ||||||||||||||
| "dependencies": { | ||||||||||||||
| "@rc-component/select": "~1.2.0", | ||||||||||||||
| "@rc-component/tree": "~1.0.1", | ||||||||||||||
| "@rc-component/util": "^1.3.0", | ||||||||||||||
| "@rc-component/select": "~1.3.0", | ||||||||||||||
| "@rc-component/tree": "~1.1.0", | ||||||||||||||
| "@rc-component/util": "^1.4.0", | ||||||||||||||
|
Comment on lines
+46
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's an inconsistency in the version range specifiers used for dependencies. For consistency and to fully benefit from semantic versioning, it's recommended to use If pinning to specific minor versions for certain packages is intentional due to stability concerns, consider adding a comment to
Suggested change
|
||||||||||||||
| "clsx": "^2.1.1" | ||||||||||||||
| }, | ||||||||||||||
| "devDependencies": { | ||||||||||||||
| "@rc-component/dialog": "^1.2.0", | ||||||||||||||
| "@rc-component/father-plugin": "^2.0.2", | ||||||||||||||
| "@rc-component/form": "^1.4.0", | ||||||||||||||
| "@rc-component/np": "^1.0.3", | ||||||||||||||
| "@rc-component/trigger": "^3.0.0", | ||||||||||||||
| "@rc-component/virtual-list": "^1.0.1", | ||||||||||||||
| "@testing-library/react": "^12.1.5", | ||||||||||||||
| "@types/jest": "^29.5.13", | ||||||||||||||
| "@types/node": "^22.7.5", | ||||||||||||||
|
|
@@ -74,9 +76,7 @@ | |||||||||||||
| "husky": "^9.1.6", | ||||||||||||||
| "lint-staged": "^15.2.10", | ||||||||||||||
| "prettier": "^3.3.3", | ||||||||||||||
| "rc-field-form": "^2.4.0", | ||||||||||||||
| "rc-test": "^7.1.1", | ||||||||||||||
| "rc-virtual-list": "^3.14.8", | ||||||||||||||
| "react": "^16.0.0", | ||||||||||||||
| "react-dom": "^16.0.0", | ||||||||||||||
| "typescript": "^5.6.3" | ||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import List from '@rc-component/virtual-list/lib/mock'; | ||
|
|
||
| export default List; | ||
|
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cd /tmp && find . -name "package.json" -type f | head -5 && cat package.json 2>/dev/null | grep -A5 -B5 "@rc-component/virtual-list" || echo "Searching from repo root..."Repository: react-component/tree-select Length of output: 120 🏁 Script executed: git ls-files | grep -E "package\.json$"Repository: react-component/tree-select Length of output: 83 🏁 Script executed: cat package.json | grep -A 2 -B 2 "@rc-component/virtual-list"Repository: react-component/tree-select Length of output: 259 🏁 Script executed: # Search for usage of the mock in test files
rg "from.*virtual-list" tests/ --type js --type jsx --type ts --type tsxRepository: react-component/tree-select Length of output: 98 🏁 Script executed: rg "virtual-list" tests/ --type js --type tsRepository: react-component/tree-select Length of output: 364 🏁 Script executed: # Search for mock usage more broadly
rg "/@rc-component/virtual-list" . --type js --type tsRepository: react-component/tree-select Length of output: 53 🏁 Script executed: # Check if there are any jest config references to this mock
cat jest.config.js 2>/dev/null || cat jest.config.ts 2>/dev/null || echo "No jest config found"Repository: react-component/tree-select Length of output: 199 🏁 Script executed: # Search for moduleNameMapper or mock-related config
rg "moduleNameMapper|virtual-list" . --type js --type jsonRepository: react-component/tree-select Length of output: 233 🌐 Web query:
💡 Result: Do you mean whether the path "@rc-component/virtual-list/lib/mock" is published/officially exported by the rc-virtual-list npm package? Short answer: No—rc-virtual-list publishes its built files under lib/ (the package entry points are the package's main/exports), but there is no documented or supported public export named "lib/mock" in the package. Confirmed by the package repository and npm listing (see package repo and npm page). [1][2] If you need a mock helper from that repo, either:
Sources:
🌐 Web query:
💡 Result: I couldn't find a package published as "@rc-component/virtual-list" at version 1.0.1. The project is published on npm as rc-virtual-list (unscoped); its package.json on npm/GitHub shows main/module entries (e.g. main: "./lib/index", module: "./es/index") and the repository is react-component/virtual-list. See npm and GitHub for the published package.json and repo: [1][2]. If you specifically need the exports/structure for a particular published tarball (e.g. a 1.0.1 release), tell me where that version is published (npm package name or a tarball/commit link) and I’ll fetch the package.json/files and list the exports precisely. Sources: The mock import path is incorrect and will cause runtime failures.
🤖 Prompt for AI Agents |
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
@rc-component/form package npm API Form useForm Field💡 Result:
Short summary of the @rc-component/form (rc-field-form) API — Form, Form.useForm, Field
Import:
import Form, { Field } from 'rc-field-form'. [1][2]
Form (props)
Form.useForm / Form instance (methods)
Field (props / usage)
References / docs:
If you want, I can paste the most-used Form instance method signatures from the repo's TypeScript interfaces.
🌐 Web query:
@rc-component/form useForm named export import destructure💡 Result:
Short answer: there isn’t a separate named export called useForm to destructure — call the static method on the Form default export (Form.useForm).
Examples:
import and call the static method:
import Form from 'rc-field-form';
const [form] = Form.useForm();
return ...;. [1][2]
if you prefer destructuring-like syntax for methods returned from the instance:
const [form] = Form.useForm();
const { getFieldValue, setFieldsValue } = form;
// use getFieldValue / setFieldsValue in your component. [1][2]
Sources: rc-field-form docs / package README. [1][2]
🏁 Script executed:
Repository: react-component/tree-select
Length of output: 3905
Fix incorrect import pattern—
useFormis not a named export.The import
import Form, { useForm, Field } from '@rc-component/form'will fail becauseuseFormis a static method onForm, not a named export. Line 47 will throw a runtime error.Change to:
And update line 47 from
const [form] = useForm();toconst [form] = Form.useForm();🤖 Prompt for AI Agents