Skip to content

fix: isolate instance state and complete TypeScript exports - #1

Open
jordyloeuille wants to merge 9 commits into
mainfrom
fix/instance-state-and-types
Open

fix: isolate instance state and complete TypeScript exports#1
jordyloeuille wants to merge 9 commits into
mainfrom
fix/instance-state-and-types

Conversation

@jordyloeuille

Copy link
Copy Markdown
Contributor

Summary

  • replace shared DOM expando state with a per-instance WeakMap
  • prevent multiple cgAOS.init() calls from inheriting each other's once configuration
  • declare the existing default export in index.d.ts
  • add dependency-free runtime and TypeScript API regression tests
  • add Node 18/22 CI, build, audit and package-content gates
  • add CI-gated GitHub releases and optional npm publication
  • prepare version 0.1.2

Validation

The PR must pass Node 18 and Node 22 tests, TypeScript checking, the tsup build, production dependency audit and npm pack --dry-run before merge.

Release safety

A new tag is only created after the main-branch CI gate succeeds. npm publication is skipped with an explicit workflow warning when NPM_TOKEN is not configured.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T16:33:54.383190Z 491404f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 491404fd2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve in-progress main-branch releases

When a second main-branch push arrives after the first run has pushed its version tag but before its GitHub/npm publication steps finish, this workflow-level setting cancels the first run. The replacement then finds that tag attached to a different SHA in the “Create release tag” step and sets publish=false, leaving that version permanently without a GitHub release and/or npm publication unless someone manually reruns the original workflow. Disable cancellation for main-branch release runs or separate release concurrency from cancellable CI.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml
Comment on lines +95 to +98
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$ ]]; then
echo "::error::package.json does not contain a valid semantic version: $version"
exit 1
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep prereleases out of the stable release path

When package.json contains a prerelease such as 0.2.0-beta.1, this regex accepts it into the job named “Publish stable release.” The later npm publish invocation supplies no --tag (npm 11's bundled command documentation states that the default tag is latest), and gh release create likewise omits --prerelease, so installing cg-aos without a version can unexpectedly select the beta. Either reject prerelease suffixes here or route them through an npm prerelease dist-tag and GitHub's prerelease flag.

Useful? React with 👍 / 👎.

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.

1 participant