Skip to content
Merged
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
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ Special thanks to the Vue team and its community for creating a thriving ecosyst

Regor also utilizes [**Jsep**](https://github.com/EricSmekens/jsep), a fast and lightweight JavaScript expression parser. Jsep's contribution to Regor's functionality is greatly appreciated.

Additionally, we would like to acknowledge the [**happy-dom**](https://github.com/capricorn86/happy-dom) library, which played a significant role in our testing process.

We also extend a warm welcome to any future contributors who join the Regor project. Your contributions will play a vital role in shaping the framework's growth and evolution.

Thank you to everyone who has contributed, inspired, and supported Regor's development journey. Your dedication and passion are invaluable.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "regor",
"version": "1.3.2",
"version": "1.3.3",
"description": "A modern UI framework for web and desktop applications, inspired by Vue's concepts and powered by simplicity and flexibility.",
"author": "Ahmed Yasin Koculu",
"license": "MIT",
Expand Down Expand Up @@ -33,15 +33,13 @@
"homepage": "https://github.com/koculu/regor#readme",
"devDependencies": {
"@eslint/js": "^9.39.2",
"@happy-dom/global-registrator": "^18.0.1",
"@stylistic/eslint-plugin": "^5.7.1",
"@types/node": "^25.2.1",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.25.5",
"eslint": "^9.39.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-tsdoc": "^0.5.0",
"happy-dom": "^18.0.1",
"prettier": "^3.5.3",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
Expand Down
11 changes: 6 additions & 5 deletions src/bind/ForBinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,9 @@ export class ForBinder {
const mountItem = MountList.__createItem(result.index, newValue)
parser.__scoped(capturedContext, () => {
parser.__push(result.ctx)
const insertParent = (commentEnd.parentNode ??
commentBegin.parentNode) as HTMLElement | null
if (!insertParent) {
throw new Error('[r-for] cannot mount: missing anchor parent')
}
const insertParent =
((commentEnd.parentNode ??
commentBegin.parentNode) as HTMLElement | null) ?? parent
let start = nextSibling.previousSibling as ChildNode
const childNodes: ChildNode[] = []
for (const x of nodes) {
Expand Down Expand Up @@ -181,6 +179,9 @@ export class ForBinder {
}

const updateDom = (newValues: any): void => {
const beginParent = commentBegin.parentNode
const endParent = commentEnd.parentNode
if (!beginParent || !endParent) return
let len = mountList.__length
if (isFunction(newValues)) newValues = newValues()
const unrefedNewValue = unref(newValues[0])
Expand Down
Loading