Skip to content

Version 1.1.1#8

Merged
JosunLP merged 4 commits intomainfrom
development
Jan 24, 2026
Merged

Version 1.1.1#8
JosunLP merged 4 commits intomainfrom
development

Conversation

@JosunLP
Copy link
Copy Markdown
Collaborator

@JosunLP JosunLP commented Jan 24, 2026

This pull request addresses a security fix and makes minor improvements to the workflow configuration and documentation. The main change resolves a potentially dangerous HTML handling issue in the playground examples, and there are small updates to the GitHub Actions workflow and versioning.

Security and Playground Fixes:

  • Replaced direct assignment of HTML via innerHTML with safer DOM manipulation in the logEvent function within playground/src/demos/core.ts to prevent possible HTML injection vulnerabilities.
  • Updated collection handling in the same file to use the raw DOM element when re-appending items, improving code clarity and safety.

Workflow and Versioning:

  • Added explicit contents: read permissions to both build and build-docs jobs in .github/workflows/npm-publish.yml to comply with GitHub Actions best practices. [1] [2]
  • Bumped package version to 1.1.1 in package.json to reflect the new release.
  • Added a changelog entry for version 1.1.1 noting the HTML handling fix in CHANGELOG.md.

JosunLP and others added 4 commits January 24, 2026 00:06
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Potential fix for code scanning alert no. 2: Workflow does not contain permissions
@JosunLP JosunLP self-assigned this Jan 24, 2026
Copilot AI review requested due to automatic review settings January 24, 2026 00:00
@JosunLP JosunLP merged commit 5edf92a into main Jan 24, 2026
12 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses a security vulnerability in playground examples and makes minor improvements to workflow configuration. Version 1.1.1 represents a patch release focusing on security hardening of demo code.

Changes:

  • Replaced unsafe innerHTML assignment with safe DOM manipulation in the events demo to prevent potential HTML injection
  • Fixed collection handling to properly access raw DOM elements via the .raw property when re-appending items
  • Added explicit contents: read permissions to GitHub Actions jobs following security best practices

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
playground/src/demos/core.ts Security fix: replaced innerHTML with safe DOM element creation in logEvent function; corrected collection handling to use .raw property
package.json Version bump to 1.1.1 for patch release
CHANGELOG.md Added changelog entry for version 1.1.1 documenting the security fix
.github/workflows/npm-publish.yml Added explicit contents: read permissions to build jobs per GitHub Actions best practices


### Fixed

- Fixed a possibly dangrous html handling in the playground examples.
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

Spelling error: "dangrous" should be "dangerous".

Suggested change
- Fixed a possibly dangrous html handling in the playground examples.
- Fixed a possibly dangerous html handling in the playground examples.

Copilot uses AI. Check for mistakes.
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