Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

Renames the ShadowObjectParams interface to ShadowObjectCreationAPI for clarity and consistency with the documented concept of the "Shadow Object Creation API."

Changes

  • types.ts: Renamed interface and updated dependent types (ShadowObjectConstructor, ShadowObjectConstructorFunc)
  • Test files: Updated imports and type references in Kernel.spec.ts and ShadowEnv.spec.ts
  • README.md: Updated documentation, code examples, and section title
  • CHANGELOG.md: Added entry for the rename (historical entries preserved)

Usage

import { ShadowObjectCreationAPI } from "@spearwolf/shadow-objects";

export function MyShadowObject({
  useProperty,
  createEffect,
  onDestroy
}: ShadowObjectCreationAPI) {
  // ...
}
Original prompt

Rename the ShadowObjectParams interface to ShadowObjectCreationAPI. Find all references in sources and documentation that refer to this interface and adjust the wording so that it always refers to the “Shadow Object Creation API.” Adjust the tests, documentation, and CHANGLOG accordingly.
(The exception here is the CHANGELOG: please do not transform the uses from history here, only document the new changes).


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Rename ShadowObjectParams interface to ShadowObjectCreationAPI Rename ShadowObjectParams to ShadowObjectCreationAPI Nov 27, 2025
Copilot AI requested a review from spearwolf November 27, 2025 15:01
@spearwolf spearwolf marked this pull request as ready for review November 27, 2025 15:02
@spearwolf spearwolf merged commit a57de0d into main Nov 27, 2025
1 check passed
@spearwolf spearwolf deleted the copilot/rename-shadow-object-params branch November 27, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants