Skip to content

Commit 18cfd2f

Browse files
vintaclaude
andcommitted
chore: remove hash from CommonJS chunks and update TODO list
- Configure Vite to use clean filenames for CommonJS chunks (dist/shared/index.cjs) - Update TODO.md with verified status of pending items - Clean up completed items list to focus on major achievements - Move ES2020+ transpilation to completed section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fb8cba0 commit 18cfd2f

File tree

7 files changed

+17
-24
lines changed

7 files changed

+17
-24
lines changed

TODO.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# pangu.js TODO List
22

3+
**Last Updated:** June 21, 2025, 7:13 PM
4+
35
> Note: When completing a task, move it from "To Do" to "Completed" section to maintain history.
46
57
## Completed
@@ -8,47 +10,38 @@
810
- [x] Migrate all source code to TypeScript
911
- [x] Replace Webpack/Babel with Vite
1012
- [x] Replace Mocha/Chai/Karma with Vitest/Playwright
11-
- [x] Fix all failing tests (106/106 passing)
1213
- [x] Add UMD build format support
13-
- [x] Update dependencies to latest versions
14-
- [x] Pin devDependencies to exact versions
15-
- [x] Remove old test dependencies from package.json
16-
- [x] Create PRIVACY.md for Chrome extension
17-
- [x] Update CLAUDE.md with TypeScript commands
18-
- [x] Add source maps for debugging (enabled in vite.config.ts)
19-
- [x] Enable full TypeScript strict mode (noImplicitAny: true)
20-
- [x] Set up ESLint for linting
21-
- [x] Set up Prettier for formatting
22-
- [x] Add eslint-plugin-unicorn with node: prefix rule
14+
- [x] Enable full TypeScript strict mode
15+
- [x] Set up ESLint and Prettier
2316
- [x] Create `publish-package` script for version management
2417
- [x] Set up GitHub Actions CI/CD workflow
25-
- [x] Add npm publish workflow with security best practices
26-
- [x] Run ESLint and fix all node: prefix violations
18+
- [x] Refactor TypeScript configuration with separate tsconfig files for node/browser
19+
- [x] Add ES2020+ features with proper transpilation (target: ES2022)
2720

2821
## To Do
2922

3023
### High Priority
3124

3225
- [ ] Update Chrome Extension to use new TypeScript builds
26+
- Currently using old pangu.min.js v4.0.7 instead of new dist/ builds
3327
- [ ] Remove Angular.js from Chrome Extension (200KB+ savings)
28+
- Still using Angular.js 1.2.9 with jQuery 2.1.0
3429
- [ ] Rewrite popup.js and options.js in TypeScript
30+
- Both files are still plain JavaScript in browser_extensions/chrome/js/
3531

3632
### Chrome Extension Enhancement
3733

3834
- [ ] Use Vite to build Chrome Extension
35+
- No Vite config exists for extension build
3936
- [ ] Modernize UI (remove jQuery/Angular dependencies)
37+
- jQuery 2.1.0 and Angular.js 1.2.9 still in use
4038
- [ ] Add TypeScript types for Chrome Extension API
39+
- No @types/chrome package installed
4140
- [ ] Update extension icons for high DPI displays
4241

43-
### Code Quality
44-
45-
- [ ] Add pre-commit hooks for linting and testing
46-
- [ ] Add test coverage reporting
47-
4842
### Future Enhancements
4943

5044
- [ ] Implement tree-shaking optimizations
51-
- [ ] Add ES2020+ features with proper transpilation
5245
- [ ] Consider monorepo structure for better organization
5346
- [ ] Add changelog generation with standard-version
5447
- [ ] Publish to JSR (JavaScript Registry) in addition to npm

dist/node/cli.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
"use strict";
3-
const index = require("../shared/index-D3O23pV7.cjs");
3+
const index = require("../shared/index.cjs");
44
var __defProp = Object.defineProperty;
55
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
66
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);

dist/node/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
33
const promises = require("node:fs/promises");
44
const node_fs = require("node:fs");
5-
const index = require("../shared/index-D3O23pV7.cjs");
5+
const index = require("../shared/index.cjs");
66
class NodePangu extends index.Pangu {
77
async spacingFile(path) {
88
const data = await promises.readFile(path, "utf8");

dist/shared/index-D3O23pV7.cjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/shared/index-D3O23pV7.cjs renamed to dist/shared/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ class Pangu {
9797
}
9898
new Pangu();
9999
exports.Pangu = Pangu;
100-
//# sourceMappingURL=index-D3O23pV7.cjs.map
100+
//# sourceMappingURL=index.cjs.map

0 commit comments

Comments
 (0)