ember-scoped-css

MIT License

Stars
11
Committers
8

Bot releases are visible (Hide)

ember-scoped-css - https://github.com/soxhub/ember-scoped-css/releases/tag/v0.19.0-ember-scoped-css Latest Release

Published by github-actions[bot] 5 months ago

Release (2024-05-22)

ember-scoped-css 0.19.0 (minor)

🚀 Enhancement

  • ember-scoped-css, classic-app, embroider-app, v2-addon
  • v2-addon
    • #197 (Breaking) Move the internal test v2 addon to addon.gjs(), dropping support for rollup-plugin-glimmer-template-tag (@NullVoxPopuli)
  • embroider-app
  • ember-scoped-css

🏠 Internal

Committers: 1

ember-scoped-css - [email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • #167 c96c89b Thanks @NullVoxPopuli! - Remove unused code and don't let ESBuild output ESM -- this restores the ability to debug ESM environments against source
ember-scoped-css - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • #159 64ac1a2 Thanks @NullVoxPopuli! - Fix issue where importing scopedClass was not supported in classic apps as the feature was only implemented for v2 addons
ember-scoped-css - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • #151 cb54e6d Thanks @NullVoxPopuli! - Fix the live reload behavior of classic ember apps when editing the CSS for a corresponding gjs and gts file
ember-scoped-css - [email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 8 months ago

Minor Changes

  • #144 880a0b9 Thanks @NullVoxPopuli! - Moves to content-tag, the same template tag parser used for all of ember's tooling

  • #147 ed8730f Thanks @NullVoxPopuli! - Support gjs and gts (<template>) by allowing an import for scopedClass.

    Example usage:

    import { scopedClass } from 'ember-scoped-css';
    
    <template>
      <p class={{scopedClass "hi"}}>text color</p>
    </template>
    
ember-scoped-css - [email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 8 months ago

Minor Changes

  • #140 b86dfe5 Thanks @NullVoxPopuli! - Fix TypeScript / Glint support.
    There is now a template-registry that folks can import for loose-mode components:

    import 'ember-source/types';
    import 'ember-source/types/preview';
    
    import type ScopedCss from 'ember-scoped-css/template-registry';
    
    declare module '@glint/environment-ember-loose/registry' {
      export default interface Registry extends ScopedCss {
        // ...
      }
    }
    

    Note that the scoped-class helper is removed at build time, so you should never see it at runtime. The types here are to satisfy correctness/type checking/lints.

Patch Changes

  • #140 3a66d3a Thanks @NullVoxPopuli! - Fixes #108. ember-scoped-css is now compatible with @embroider/addon-dev@v4, which means that rollup-plugin-glimmer-template-tag is no longer needed, and also no longer recommended in the README. For GJS/GTS/<template>, please use @embroider/addon-dev's addon.gjs() plugin.
ember-scoped-css - [email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] 11 months ago

Minor Changes

  • #129 e0ae8e3 Thanks @NullVoxPopuli! - Fix issue where sufficiently modern JS would not be parseable by scoped-css' build processes.

    Folks would run in to this if they ship code with untranspiled

    • static initializer blocks
    • private fields

    Both these ecma features are supported everywhere, so it's reasonable that folks would expect their tooling to support parsing those features.

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #102 3ca5674 Thanks @NullVoxPopuli! - Fix an issue with strings in class attributes declared via sub-expressions (such as within if statements), were not properly getting scoped.

    For example:

    <template>
      <div class="global-probably {{if @condition "a-local-class"}}">
        Hello there!
      </div>
    </template>
    

    When the sibling CSS file only declares a-local-class, we would expect that

    • global-probably remains unchanged
    • a-local-class gets hashed

    Note that this bug is not fixed for embroider consumers.

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

ember-scoped-css - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #95 845ecb8 Thanks @jakebixby! - added postProcess hook to scoped-css-preprocessor to break cache for associated template file