Make container queries that harness the power of Ember
MIT License
Bot releases are visible (Hide)
[!WARNING]
[email protected]
specifies^3.24 || >= 4.0
when listingember-source
as a peer dependency. If you usepnpm
, you may encounter an issue with running an Ember app.
Published by ijlee2 4 months ago
Published by ijlee2 5 months ago
@embroider/addon-shim
to 1.8.7
to 1.8.8
.decorator-transforms
from 1.2.1
to 2.0.0
.It should be safe to update ember-container-query
from 5.0.8
to 5.0.9
.
Published by ijlee2 6 months ago
decorator-transforms
from 1.1.0
to 1.2.1
ember-element-helper
from 0.8.5
to 0.8.6
It should be safe to update ember-container-query
from 5.0.7
to 5.0.8
.
Published by ijlee2 8 months ago
It should be safe to update ember-container-query
from 5.0.6
to 5.0.7
.
Published by ijlee2 10 months ago
I updated decorator-transforms
to 1.0.3
so that ember-container-query
works on projects that have decorator-transforms@v1
as their dependency.
Published by ijlee2 10 months ago
In v5.0.4
, I didn't mean to restrict the supported versions of ember-modifier
from ^3.2.7 || ^4.1.0
to ^4.1.0
. I reverted this change in v5.0.5
.
[!IMPORTANT]
Installing[email protected]
(orv5.0.5
) can result in the installation of[email protected]
, which seems to have a regression.If you encounter the error
The @action decorator must be applied to methods when used in native classes
, you may need to pindecorator-transforms
tov1.0.1
for now.
Published by ijlee2 10 months ago
By replacing a few Babel plugins with decorator-transforms
, we can ship fewer bytes and avoid the need to transpile other class features.
Before | After | |
---|---|---|
Package size | 15.7 kB | 14.6 kB |
Unpacked size | 54.3 kB | 49.6 kB |
Total files | 40 | 38 |
Published by ijlee2 10 months ago
Published by ijlee2 12 months ago
It should be safe to update ember-container-query
from 5.0.1
to 5.0.2
.
Published by ijlee2 about 1 year ago
It is safe to update ember-container-query
from 5.0.0
to 5.0.1
.
Published by ijlee2 about 1 year ago
[!NOTE]
Assuming that you are on[email protected]
, you may take one of 3 migration paths:
- If your project is in a good condition (e.g. runs on Node 18), you can update directly to
5.0.0
.- If your project runs on Node 16 and doesn't pull in many different versions of
ember-element-helper
, update to4.1.0
.- Otherwise, update to
4.0.6
first.
Published by ijlee2 about 1 year ago
On August 29 (two weeks ago), [email protected]
was released to provide the signature for the {{element}}
helper. The signature seems to work well in this project.
However, I suspect that there are many addons that still depend on an older version of ember-element-helper
. Given that ember-element-helper
is in 0.x
and changed to v2 format in 0.7.0
, it may not be trivial for consuming apps to install a single version. To indicate that there's some risk, I'll make a minor release 4.1.0
.
[!NOTE]
For an incremental migration, updateember-container-query
from4.0.5
to4.0.6
, then from4.0.6
to4.1.0
.
Published by ijlee2 about 1 year ago
I updated all dependencies to the latest version (except ember-element-helper
, which remains at v0.7.1
to ease your migration). I also downstreamed relevant changes from @embroider/[email protected]
.
Published by ijlee2 about 1 year ago
I created the tag 4.0.5
to help end-developers update ember-container-query
incrementally. The main changes since 4.0.4
are:
rollup-plugin-ts
@embroider/addon-blueprint
's new approach to creating TS declaration files (you can refer to their tags v1.7.0, v2.0.0, and v2.1.0)ember-element-helper
from v0.6.1
to v0.7.1
. (ember-element-helper
is now a v2 addon.)These changes shouldn't have caused regressions. Please let me know if you discover a bug.
The next tag (likely 4.1.0
) will support end-developers who use the latest versions of @embroider/*
packages.
Published by ijlee2 over 1 year ago
It is safe to update ember-container-query
from 4.0.3
to 4.0.4
.
Published by ijlee2 over 1 year ago
For ember-container-query
, the configuration files babel.config.json
and rollup.config.mjs
have been updated to account for the latest code from @embroider/[email protected]
and @embroider/[email protected]
, respectively.
The code changes (between 4.0.2
and 4.0.3
) are internal and shouldn't affect your project in unexpected ways.
Published by ijlee2 over 1 year ago
On May 17, the @embroider
packages announced either a major or minor release. I updated the dependencies accordingly.
(In summary, ember-container-query
depends on @embroider/[email protected]
.)
Published by ijlee2 over 1 year ago
[email protected]
continues to be supported.
Published by ijlee2 over 1 year ago
As of v4.0.0
, ember-container-query
is shown to be compatible with the strictest settings for Embroider, Glint, and <template>
-tag.
Thanks to @buschtoens, @opatajoshua, @NullVoxPopuli, and @st-h for helping with development and providing feedback for the pre-release versions.
ember-auto-import@v2
){{cq-aspect-ratio}}
, {{cq-height}}
, and {{cq-width}}
ember-modifier
to v4
([email protected]
is also allowed for now, but is considered to be deprecated in ember-container-query@v4
)ember-test-selectors
from dependencies
(a bug)modifiers/container-query.ts
in index.ts
// In [email protected]
import type { Dimensions } from 'ember-container-query/modifiers/container-query';
import { containerQuery } from 'ember-container-query';
// In [email protected]
import { containerQuery, type Dimensions } from 'ember-container-query';
docs-app
to show examples of <template>
-tag componentsember-css-modules
from docs-app