Skip to content

chore: remove stale artifacts and debug console.log#18

Merged
thedhanawada merged 3 commits intomasterfrom
chore/remove-stale-artifacts
Feb 18, 2026
Merged

chore: remove stale artifacts and debug console.log#18
thedhanawada merged 3 commits intomasterfrom
chore/remove-stale-artifacts

Conversation

@thedhanawada
Copy link
Copy Markdown
Contributor

Summary

Three cleanup items with no functional impact:

1. Remove console.log from src/index.js

'Force Calendar Interface loading...' was logged to the console on every import in browser environments. Library code must not produce console output — it pollutes consumer devtools and violates the principle of least surprise for any project using this package.

2. Delete rollup.config.js

This file was vestigial from a previous monorepo structure. It referenced source paths (core/index.js, output demo/dist/) that do not exist in this repository, and declared rollup plugin dependencies (@rollup/plugin-node-resolve, @rollup/plugin-terser) that are not in devDependencies. The file could not run. The active build tool is Vite (vite.config.js).

Keeping dead config files signals to contributors that they are maintained and usable — they are not.

3. Delete demo.html

The secondary demo page had two independent failures:

  • Referenced the wrong dist filename: forcecal-main-interface.esm.js (correct name: force-calendar-interface.esm.js) — it would produce a 404 on load
  • Called calendar.setEvents() and calendar.clearEvents() which are not part of the public API

The active development demo is index.html (used via npm run dev). This file was an unmaintained copy from an older API iteration.

Test plan

  • All 13 existing tests pass
  • npm run build succeeds
  • No console.log output when importing the library

Three items cleaned up:

1. console.log in src/index.js
   The 'Force Calendar Interface loading...' log fired in every consumer's
   browser on import. Library code must not produce console output in
   production — it pollutes consumer devtools and is a violation of the
   principle of least surprise.

2. rollup.config.js (deleted)
   This file pointed to non-existent source paths (core/index.js, demo/dist/)
   and referenced packages not present in devDependencies. It was vestigial
   from a previous monorepo layout and could not run. Keeping dead config
   files implies they are maintained and usable.

3. demo.html (deleted)
   The secondary demo page referenced the wrong dist filename
   (forcecal-main-interface.esm.js instead of force-calendar-interface.esm.js)
   and called calendar.setEvents() and calendar.clearEvents() which do not
   exist on the public API. The active development demo is index.html;
   this file was an unmaintained duplicate from an earlier API iteration.
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
force-calendar-interface Ready Ready Preview, Comment Feb 18, 2026 11:55pm

@thedhanawada thedhanawada merged commit 2dcfaaa into master Feb 18, 2026
13 checks passed
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