- ...
2023-10-07
- docs: Add JSDoc comments with links to the v2-branch's README file
2023-10-06
- feat: If the monitored element has no generated content, then retry a few times
- feat: Make
useFormatMonitor
hooks return themedia
info object - fix: Actually remove legacy media properties
.format
,.lastFormat
2023-05-24
- feat: Add
pkg.exports
to improve ESMimport
resolutions
2022-12-15
- feat: Allow passing callback/getter function to
makeFormatMonitorHook
- fix(ts): Flag
FormatMonitorOptions.manual
as optional - fix: Prevent error messages in
jsdom
environments
2022-12-14
- BREAKING feat: Remove support for ancient browsers
- BREAKING feat: Stop reading media name from
font-family
, use::after
only - BREAKING feat: Use named export for
FormatChange
class - BREAKING feat: Always export
FormatChange
, perform no-op on missingwindow
- BREAKING feat: Split
FormatChange.jQueryPlugin
factory into standalone moduleformatchange/jquery
- BREAKING feat: Split
FormatChange.makeGroups
into standalone moduleformatchange/makeGroups
- BREAKING feat:
makeGroups
'sgroup
values arrays of group names - BREAKING feat: Remove
media.format
andmedia.lastFormat
- feat: Modernize and remove side-effects to improve tree-shaking
2022-03-01
- fix: Publish
react
module as ES5, for backwards compatibility
2022-02-23
- feat: React helpers:
- feat: Add
makeFormatMonitorHook
custom react hook builder - feat: Add type declarations
- feat: Deprecate
withMediaProps
HOC
- feat: Add
- fix: Bugs in Type declarations
2022-02-21
- feat: Add TypeScript type declarations
2018-11-04
- Fix error when run on server/node. Export nothing/
undefined
when nowindow
is found. - Fix hydration of server-side-rendered HTML. Make HOC only use
getPropsFromMedia
oncomponentDidMount
2018-10-31
- Fix broken
FormatChange.makeGroups
2018-10-31
- Fix missing minified script
2018-10-31
- Add
formatchange/react
module exportingwithMediaProps
HOC - Add static helper
FormatChange.makeGroups
2018-09-24
- Add
.subscribe(callback, runImmediately);
signature
2016-03-11
- Fix infinite recusion in window resize check.
2016-03-11
- Add a public
.check()
method for faster media checks with themanual
option - Fix errors and omissions in the documentation
2016-03-11
- Add
win
option to specify customwindow
object.
(This allows an<iframe>
to be monitored by its host page.) - Add
elm
option to provide a pre-generated monitoring Element.- Expose an instance's element as
.elm
- Query DOM for a preexisting element with
elmId
- Expose an instance's element as
- Add
manual
option to not bindwindow.onresize
(This allows a fully manual triggering of.refresh()
which is extremely useful when emulating "element-queries") - Improve the CSS "hiding" of the monitoring element.
2016-03-10
- Fix jQuery plugin re-run returning
undefined
2015-11-23
- Always register the jQuery plugin if jQuery is defined
(This should be generally harmless, and creates a more seamless experience for developers moving from<script>
tags towards Browserify or other CommonJS-like environment.)
2015-07-02
- Rename media.format/.lastFormat --> media.is/.was
(While still supporting the old property names)
2015-06-16
- Workaround for IE11 not computing
::after
immediately on new elms
(Apparent regression in v. 11.0.9600.17843)
2015-06-13
- Prevent subscription of falsy callbacks + instant double-trigger edge case
2015-03-12
- Auto-trigger bound jQuery events asynchronously - if they've not been manually triggered in the meantime.
2014-09-22
- Improve the CSS "hiding" of the monitoring element.
2014-09-04
- Improved documentation
2014-09-03
- Initial release as npm module