Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework package based on tiny-invariant #40

Closed
wants to merge 1 commit into from
Closed

Rework package based on tiny-invariant #40

wants to merge 1 commit into from

Conversation

wojtekmaj
Copy link

@wojtekmaj wojtekmaj commented Jul 12, 2023

This is a complete rework of tiny-warning package based on, as far as I possibly could do it, tiny-invariant.

  • ✅ Adds first-class TypeScript support
  • ✅ Adds tests from tiny-invariant like bundle-behaviour
  • ✅ Migrates from Travis to GitHub Actions
  • ✅ Keeps Flow support
  • Fixes Incorrect types are causing errors when using TypeScript with moduleResolution set to node16 or nodenext #39
  • Fixes tiny-warning is larger than warning #21, kinda? ESM build is smaller now. The files that are larger would have been smaller as well if not for the (global = global || self, global.warning = factory()) bit being replaced with (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.warning = factory()) in the new version, similarly to tiny-invariant.
    • tiny-warning.min.js - 190B (was 173B)
    • tiny-warning.js - 260B (was 235B)
    • tiny-warning.cjs.js - 169B (was 169B)
    • tiny-warning.esm.js - 106B (was 111B)

@wojtekmaj wojtekmaj closed this by deleting the head repository Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant