Back to Explore

mysticatea/event-target-shim

GitHub
1 watchersOpen source

Last release:

An npm package that provides an implementation of the WHATWG EventTarget and Event interfaces for use in JavaScript, with support for event listener options like passive, once, and signal. It is designed to work in both browsers and Node.js and is intended to be TypeScript friendly. Useful when you need consistent EventTarget/Event behavior in environments that do not fully support the standard.

Project status

  • The repository appears quiet/dormant for new work, with the most recent upstream push dated 2023-01-06, and the latest published package updates (v6.0.2, v6.0.1, v6.0.0) dating to 2021-01-07.
  • Update cadence is effectively low, with no evidence of ongoing releases close to today (2026-08-12), suggesting maintenance is not active.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v6.0.2

    Release v6.0.2 focuses on a targeted compatibility fix for IE11 build outputs. It corrects exported files in both the es5 and UMD bundles to improve interoperability.

  • v6.0.1

    Release v6.0.1 is labeled as an accidental broken release. The release notes provide no details about the nature of the breakage or what functionality may be affected.

    Breaking
  • v6.0.0

    v6.0.0 rewrites the package in TypeScript and introduces several user-facing API additions, including exporting the `Event` class and supporting the `signal` option for `addEventListener`. It also changes how listener exceptions and silently ignored operations are handled, and it calls out API breaking changes that require consulting the migration guide.

    BreakingFeatures
  • v5.0.1

    v5.0.1 is primarily a build output bug fix intended to remove ES2015 syntax from the distributed UMD bundle. The diff also updates the TypeScript type-definition test harness and adds a new dev dependency.

  • v5.0.0

    v5.0.0 is primarily a TypeScript typing overhaul. Release notes state the runtime implementation is unchanged, while the type system is expanded to allow per-event typing so that addEventListener/removeEventListener/dispatchEvent and on* attributes can be specialized.

    BreakingFeatures
  • v4.0.3

    v4.0.3 is a minor release focused on compatibility with older Node.js versions, specifically avoiding syntax not supported by Node 6.x. The code diff primarily removes “newer syntax” patterns (notably trailing commas in call sites) and makes small adjustments to the test transpilation setup.

  • v4.0.2

    Release v4.0.2 is described as a small bug fix to the TypeScript type definitions. The actual diff is entirely in type surface area (index.d.ts) plus some repo-level TypeScript configuration and type-checking tests.

  • v4.0.1

    v4.0.1 is a small release focused on TypeScript type definition fixes. The release notes mention “some problems in type definitions”, but do not detail the specific signature or overload changes made to the exported EventTarget typings.

  • v4.0.0

    v4.0.0 primarily introduces TypeScript type definitions and aligns the API with newer DOM EventTarget conventions. It also extends the Event wrapper with legacy DOM properties (srcElement, cancelBubble, returnValue, initEvent) and removes previously undocumented boolean return values from addEventListener/removeEventListener.

    BreakingFeatures
  • v3.0.2

    Release v3.0.2 primarily contains an EventTarget behavior fix related to what happens when an event listener throws during dispatch. The diff also updates the project build and toolchain setup (Rollup-based bundling) and bumps several development dependencies.