I have a regular custom object that was marked as Protected in my 1GP packaging org. It has been included in the last few releases of the package as Protected.
In my DX Scratch Org, I had to unprotect it so I could work on some new functionality. But when I did the source convert and deploy, it also updated the visibility in the packaging org to public.
Now, even though I haven't created a new version of the package, I can't find any way to reverse that in my packaging org - if I try via deployment, it says
"Cannot modify managed object: entity=CustomEntityDefinition, state=MANAGED_RELEASED, You can't reduce the visibility from Public to Protected for a released Custom Object."
And the visibility option is not visible in either classic or lightning object manager?
But if I haven't released this object with visibility set to public, why can't I still revert the visibility? I really don't want to include this object as public yet - it is supposed to be protected behind feature management. Is there some way I am not thinking of to revert this since I haven't packaged it up yet?