Repository navigation
Releases: eoussama/firemitt
Releases · eoussama/firemitt
Release list
Handshake
Highlights
The Fireguard window no longer gets stuck loading on the first try, and failures now reject with real, typed errors.
Fixes
- Fireguard stuck loading:
- In iframe mode, Fireguard's first message could arrive before Firemitt listened.
- A blocked popup left the promise pending forever.
- App names with characters outside Latin-1 (emoji, Arabic, CJK…) prevented the configuration from being sent.
- Sessions: each
auth()call runs its own session. A new call cancels the previous one (closing its popup or removing its iframe), and an invalid call no longer cancels the active session. - Results:
- A blocked popup rejects with
PopupBlockedError. - A failure reported by Fireguard rejects with
AuthFailedError, anErrorkeeping the remotetype,name,messageandcode. - A success without a token now rejects.
- A token sent right before the popup closes is no longer lost.
- A blocked popup rejects with
- Options:
- Width and height must be numbers greater than zero.
- Invalid positions fall back to the defaults.
- The popup is centered on the current window.
- Provider ids are normalized.
- CommonJS:
require("@eoussama/firemitt")now works (firemitt.umd.cjs). Script tags and CDNs keepfiremitt.umd.js.
Security
- Firemitt only accepts messages from its own Fireguard window, and sends the configuration to Fireguard's origin instead of
"*".
Changes
measurementId,storageBucketandmessagingSenderIdare now optional inTFirebaseConfig.- New:
PopupBlockedError,AuthFailedError,ErrorType.PopupBlockedandErrorType.AuthFailed, and an optionalcodeon errors. - EventHelper: a
sourcefilter foron(), a target origin forsend(), anddispose(). - Dependencies upgraded, including
@eoussama/core0.1.2, which no longer installs a linting toolchain in your project.
Compatibility
- Works with the deployed Fireguard (0.1.3) and the upcoming 0.1.4.
- Behaviour change: SAML providers return no OAuth token, so they now reject instead of resolving with an empty string.
Full Changelog: 0.1.8...v0.1.9
Production Package
Flattened distributions.
Full Changelog: 0.1.7...0.1.8
Typing
Bug Fixes
- Fix missing type declarations in published package — previous releases only included
firemitt.es.jsindist/. This was caused by"noEmit": trueintsconfig.json(required byallowImportingTsExtensions) blockingvite-plugin-dtsfrom emitting.d.tsfiles.
Changes
- Added
tsconfig.build.json— a build-only TypeScript config that extends the maintsconfig.jsonwith emit-compatible overrides (noEmit: false,declaration: true,emitDeclarationOnly: true). - Updated
vite.config.jsto pointvite-plugin-dtsattsconfig.build.json, ensuringdist/index.d.tsand all declaration files are generated on every build.
The "types": "./dist/index.d.ts" export condition in package.json now resolves correctly for consumers.
Full Changelog: 0.1.6...0.1.7
Polish Release
What's Changed
- Change Sync by @eoussama in #56
- Change Sync by @eoussama in #57
- Added Version Badge by @eoussama in #58
- Change Sync by @eoussama in #59
- Refresh by @eoussama in #61
- docs: add Firebase authorized domains note to README by @eoussama in #63
- Fea/64 playground by @eoussama in #65
- Popup Errors by @eoussama in #67
- Multiple Providers by @eoussama in #69
- feat: iframe embedding support by @eoussama in #72
- feat: add background color to theme configuration by @eoussama in #73
- chore: playground cleanup and UX improvements by @eoussama in #75
- doc: Documentation by @eoussama in #76
- Polish Release by @eoussama in #77
Full Changelog: 0.1.5...0.1.6
QoL
Stability Patch
GitHub Registry
NPM
Added scoped npm package.
Full Changelog: 0.1.0...0.1.1
Initial Release
What's Changed
- Initialize by @eoussama in #3
- Initialization by @eoussama in #4
- Logic by @eoussama in #6
- Error Handling by @eoussama in #12
- Encryption by @eoussama in #13
- Basic Logic by @eoussama in #14
- Documentation by @eoussama in #15
- Documentation by @eoussama in #16
- Doc Deployment by @eoussama in #17
- Doc Link by @eoussama in #18
- Rebase by @eoussama in #19
- Improve Documentation by @eoussama in #21
- Unit Tests by @eoussama in #22
- Build by @eoussama in #23
- Package Build by @eoussama in #24
- First Stable Version by @eoussama in #25
- Package Scope by @eoussama in #27
- Scoping by @eoussama in #28
New Contributors
Full Changelog: https://github.com/eoussama/firemitt/commits/0.1.0