Skip to content

Router Set: deprecate private. Introduce isPrivate#9271

Closed
Tobbe wants to merge 1 commit intoredwoodjs:mainfrom
Tobbe:tobbe-set-isprivate
Closed

Router Set: deprecate private. Introduce isPrivate#9271
Tobbe wants to merge 1 commit intoredwoodjs:mainfrom
Tobbe:tobbe-set-isprivate

Conversation

@Tobbe
Copy link
Copy Markdown
Contributor

@Tobbe Tobbe commented Oct 5, 2023

private is a reserved word in JavaScript. Switch to isPrivate instead.

I decided to keep private around, to make it easier for people to upgrade. But unfortunately this is still breaking because if people are already passing a isPrivate prop on their own it will now take on a new meaning.

Fixes #2562

@Tobbe Tobbe added the release:breaking This PR is a breaking change label Oct 5, 2023
@Tobbe Tobbe added this to the v7.0.0 milestone Oct 5, 2023
@Tobbe
Copy link
Copy Markdown
Contributor Author

Tobbe commented Oct 10, 2023

Discussed this one on our Core Team meeting today.
We agreed in a different solution: Deprecate the private prop and instead introduce a new component: <PrivateSet unauthenticated="home">. We also decided to deprecate the <Private> component. Try to get it released as soon as possible in a minor release and then fully get rid of private and <Private> in v7

@Tobbe Tobbe mentioned this pull request Oct 15, 2023
@Tobbe
Copy link
Copy Markdown
Contributor Author

Tobbe commented Oct 15, 2023

Closing this in favor of #9303

@Tobbe Tobbe closed this Oct 15, 2023
@jtoar jtoar removed this from the v7.0.0 milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:breaking This PR is a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unauthenticated is not a suggested prop of <Set>

2 participants