Skip to content

feat: simplify#1589

Merged
k11kirky merged 1 commit intomainfrom
04-09-feat_simplify
Apr 13, 2026
Merged

feat: simplify#1589
k11kirky merged 1 commit intomainfrom
04-09-feat_simplify

Conversation

@k11kirky
Copy link
Copy Markdown
Contributor

@k11kirky k11kirky commented Apr 9, 2026

TLDR

Simplified PostHog enricher initialization and improved API ergonomics by removing manual setup requirements and adding file parsing capabilities.

Changes

  • Removed manual initialization: Grammar files are now bundled and auto-located at runtime, eliminating the need to call initialize() or specify WASM directory paths
  • Added file parsing: New parseFile() method automatically detects language from file extensions and reads files directly
  • Improved property naming: Renamed enrichedFlags and enrichedEvents to flags and events for cleaner API
  • Enhanced comment formatting: Removed restriction that limited one comment per source line
  • Updated documentation: Revised README examples to reflect the simplified API and new capabilities
  • Added language detection: Exported EXT_TO_LANG_ID mapping for file extension to language ID conversion

Copy link
Copy Markdown
Contributor Author

k11kirky commented Apr 9, 2026

@k11kirky k11kirky force-pushed the 04-09-feat_simplify branch from a4faaa7 to 1f593e3 Compare April 10, 2026 14:16
@k11kirky k11kirky marked this pull request as ready for review April 10, 2026 14:16
@k11kirky k11kirky requested a review from adboio April 10, 2026 16:34
@k11kirky k11kirky force-pushed the 04-09-feat_refactor_improve_stability branch from 7e80e97 to bda15b3 Compare April 11, 2026 13:11
@k11kirky k11kirky force-pushed the 04-09-feat_simplify branch from 1f593e3 to 5b0c3e1 Compare April 11, 2026 13:11
Copy link
Copy Markdown
Contributor Author

k11kirky commented Apr 13, 2026

Merge activity

  • Apr 13, 1:17 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 13, 1:57 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 13, 2:06 PM UTC: @k11kirky merged this pull request with Graphite.

@k11kirky k11kirky changed the base branch from 04-09-feat_refactor_improve_stability to graphite-base/1589 April 13, 2026 13:47
@k11kirky k11kirky changed the base branch from graphite-base/1589 to main April 13, 2026 13:55
@k11kirky k11kirky force-pushed the 04-09-feat_simplify branch from 5b0c3e1 to 862db66 Compare April 13, 2026 13:56
@k11kirky k11kirky merged commit 24ac14e into main Apr 13, 2026
16 checks passed
@k11kirky k11kirky deleted the 04-09-feat_simplify branch April 13, 2026 14:06
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.

3 participants