Skip to content

wmr 3.2.0

Compare
Choose a tag to compare
@marvinhagemeister marvinhagemeister released this 01 Jul 08:14
· 399 commits to main since this release
33a046b

Minor Changes

  • 8aff0a1 #712 Thanks @marvinhagemeister! - Add support for logical assignment operators.

    // "Or Or Equals" (or, the Mallet operator :wink:)
    a ||= b;
    a || (a = b);
    
    // "And And Equals"
    a &&= b;
    a && (a = b);
    
    // "QQ Equals"
    a ??= b;
    a ?? (a = b);
  • 71ef3aa #710 Thanks @marvinhagemeister! - Add support for private class fields which is a recent addition to JavaScript (currently Stage 3). We're adding it because it's supported in all major browsers natively.

    class Foo {
    	#hi() {
    		console.log('hellow');
    	}
    	greet() {
    		this.#hi();
    	}
    }
    new Foo().greet();
  • d49c674 #717 Thanks @rschristian! - Adds new config option for specifying additional links to prerender in your WMR configuration file.

    // wmr config
    import { defineConfig } from 'wmr';
    
    export default defineConfig({
    	customRoutes: ['/foo/bar', '/my-other-route', '/rss.xml']
    });

Patch Changes

  • 21b467e #719 Thanks @marvinhagemeister! - Fix HMR updates not bubbled through proxy modules. This resolves an issue where the page was not updated when a new CSS class was added to a CSS-Module or Sass-Module.

  • 34ce488 #713 Thanks @marvinhagemeister! - Fix missing version on --version argument