ember-container-query 2.0.0-alpha.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,52 @@
1
+ ## 2.0.2 (2022-04-25)
2
+
3
+ ### Bug Fix
4
+ * [#113](https://github.com/ijlee2/ember-container-query/pull/113) Removed named exports for helpers ([@ijlee2](https://github.com/ijlee2))
5
+
6
+ ### Committers: 1
7
+ - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
8
+
9
+
10
+ ## 2.0.1 (2022-04-25)
11
+
12
+ ### Bug Fix
13
+ * [#111](https://github.com/ijlee2/ember-container-query/pull/111) Added named exports for helpers ([@ijlee2](https://github.com/ijlee2))
14
+
15
+ ### Documentation
16
+ * [#112](https://github.com/ijlee2/ember-container-query/pull/112) Enabled ember-beta scenario ([@ijlee2](https://github.com/ijlee2))
17
+ * [#110](https://github.com/ijlee2/ember-container-query/pull/110) Refactored <Ui::Form> components in the demo app ([@ijlee2](https://github.com/ijlee2))
18
+
19
+ ### Committers: 1
20
+ - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
21
+
22
+
23
+ ## 2.0.0 (2022-04-09)
24
+
25
+ ### Breaking Change
26
+ * [#106](https://github.com/ijlee2/ember-container-query/pull/106) Dropped support for 3.20 LTS ([@ijlee2](https://github.com/ijlee2))
27
+ * [#94](https://github.com/ijlee2/ember-container-query/pull/94) Dropped support for Node 10 ([@ijlee2](https://github.com/ijlee2))
28
+ * [#93](https://github.com/ijlee2/ember-container-query/pull/93) Dropped support for 3.16 LTS ([@ijlee2](https://github.com/ijlee2))
29
+
30
+ ### Internal
31
+ * [#108](https://github.com/ijlee2/ember-container-query/pull/108) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
32
+ * [#74](https://github.com/ijlee2/ember-container-query/pull/74) Replaced ember-did-resize-modifier with ember-on-resize-modifier ([@st-h](https://github.com/st-h))
33
+ * [#100](https://github.com/ijlee2/ember-container-query/pull/100) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
34
+ * [#97](https://github.com/ijlee2/ember-container-query/pull/97) Updated ember-source to v3.28.6 ([@ijlee2](https://github.com/ijlee2))
35
+ * [#96](https://github.com/ijlee2/ember-container-query/pull/96) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
36
+
37
+ ### Documentation
38
+ * [#109](https://github.com/ijlee2/ember-container-query/pull/109) Updated the demo app ([@ijlee2](https://github.com/ijlee2))
39
+ * [#104](https://github.com/ijlee2/ember-container-query/pull/104) Updated style and tests for demo app ([@ijlee2](https://github.com/ijlee2))
40
+ * [#102](https://github.com/ijlee2/ember-container-query/pull/102) Removed @percy/exec-action (deprecated) ([@ijlee2](https://github.com/ijlee2))
41
+ * [#103](https://github.com/ijlee2/ember-container-query/pull/103) Applied timeout to all rendering and application tests ([@ijlee2](https://github.com/ijlee2))
42
+ * [#101](https://github.com/ijlee2/ember-container-query/pull/101) Added a form example to the demo app ([@ijlee2](https://github.com/ijlee2))
43
+ * [#99](https://github.com/ijlee2/ember-container-query/pull/99) Replaced custom caching strategy with one built into @actions/setup-node ([@ijlee2](https://github.com/ijlee2))
44
+
45
+ ### Committers: 2
46
+ - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
47
+ - Steve ([@st-h](https://github.com/st-h))
48
+
49
+
1
50
  ## 2.0.0-alpha.0 (2021-12-12)
2
51
 
3
52
  ### Breaking Change
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020
3
+ Copyright (c) 2022
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/README.md CHANGED
@@ -286,8 +286,8 @@ For more examples, I encourage you to check out the code for my demo app. It is
286
286
  Compatibility
287
287
  ------------------------------------------------------------------------------
288
288
 
289
- * Ember.js v3.20 or above<sup>1</sup>
290
- * Ember CLI v3.20 or above
289
+ * Ember.js v3.24 or above<sup>1</sup>
290
+ * Ember CLI v3.24 or above
291
291
  * Node.js v12 or above
292
292
  * Modern browsers<sup>1</sup> (IE 11 won't be supported)
293
293
 
@@ -305,8 +305,6 @@ Credits
305
305
 
306
306
  Much thanks goes to [Chad Carbert (@chadian)](https://github.com/chadian), who introduced me to container queries at [EmberFest 2019](https://www.youtube.com/watch?v=RIdjk9_RSBY) and created [`ember-fill-up`](https://github.com/chadian/ember-fill-up) 🌟. I modeled the API for `ember-container-query` based on Chad's addon.
307
307
 
308
- Also to the Ember teams and [Garrett Murphey (@gmurphey)](https://github.com/gmurphey), without whom [`@ember/render-modifiers`](https://github.com/emberjs/ember-render-modifiers) and [`ember-did-resize-modifier`](https://github.com/gmurphey/ember-did-resize-modifier) wouldn't exist.
309
-
310
308
 
311
309
  License
312
310
  ------------------------------------------------------------------------------
@@ -1,8 +1,10 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
 
3
- export default helper(function cqAspectRatio(params, hash) {
3
+ function cqAspectRatio(params, hash) {
4
4
  const dimension = 'aspectRatio';
5
5
  const { min = 0, max = Infinity } = hash;
6
6
 
7
7
  return { dimension, min, max };
8
- });
8
+ }
9
+
10
+ export default helper(cqAspectRatio);
@@ -1,8 +1,10 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
 
3
- export default helper(function cqHeight(params, hash) {
3
+ function cqHeight(params, hash) {
4
4
  const dimension = 'height';
5
5
  const { min = 0, max = Infinity } = hash;
6
6
 
7
7
  return { dimension, min, max };
8
- });
8
+ }
9
+
10
+ export default helper(cqHeight);
@@ -1,8 +1,10 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
 
3
- export default helper(function cqWidth(params, hash) {
3
+ function cqWidth(params, hash) {
4
4
  const dimension = 'width';
5
5
  const { min = 0, max = Infinity } = hash;
6
6
 
7
7
  return { dimension, min, max };
8
- });
8
+ }
9
+
10
+ export default helper(cqWidth);
@@ -1,4 +1 @@
1
- export {
2
- default,
3
- cqAspectRatio,
4
- } from 'ember-container-query/helpers/cq-aspect-ratio';
1
+ export { default } from 'ember-container-query/helpers/cq-aspect-ratio';
@@ -1 +1 @@
1
- export { default, cqHeight } from 'ember-container-query/helpers/cq-height';
1
+ export { default } from 'ember-container-query/helpers/cq-height';
@@ -1 +1 @@
1
- export { default, cqWidth } from 'ember-container-query/helpers/cq-width';
1
+ export { default } from 'ember-container-query/helpers/cq-width';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-container-query",
3
- "version": "2.0.0-alpha.0",
3
+ "version": "2.0.2",
4
4
  "description": "Container queries using Ember modifiers",
5
5
  "keywords": [
6
6
  "container-queries",
@@ -49,63 +49,63 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@ember/render-modifiers": "^2.0.0",
53
- "ember-cli-babel": "^7.26.6",
54
- "ember-cli-htmlbars": "^6.0.0",
55
- "ember-element-helper": "^0.5.5",
56
- "ember-on-resize-modifier": "^0.4.5"
52
+ "@ember/render-modifiers": "^2.0.4",
53
+ "ember-cli-babel": "^7.26.11",
54
+ "ember-cli-htmlbars": "^6.0.1",
55
+ "ember-element-helper": "^0.6.1",
56
+ "ember-on-resize-modifier": "^1.0.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@ember/optional-features": "^2.0.0",
60
- "@ember/test-helpers": "^2.6.0",
61
- "@embroider/test-setup": "^0.47.2",
62
- "@glimmer/component": "^1.0.4",
63
- "@glimmer/tracking": "^1.0.4",
64
- "@percy/cli": "^1.0.0-beta.71",
60
+ "@ember/test-helpers": "^2.7.0",
61
+ "@embroider/test-setup": "^1.6.0",
62
+ "@glimmer/component": "^1.1.2",
63
+ "@glimmer/tracking": "^1.1.2",
64
+ "@percy/cli": "^1.1.0",
65
65
  "@percy/ember": "^3.0.0",
66
66
  "babel-eslint": "^10.1.0",
67
67
  "broccoli-asset-rev": "^3.0.0",
68
- "d3-array": "^3.1.1",
68
+ "d3-array": "^3.1.6",
69
69
  "d3-axis": "^3.0.0",
70
70
  "d3-scale": "^4.0.2",
71
71
  "d3-selection": "^3.0.0",
72
- "d3-shape": "^3.0.1",
73
- "ember-a11y-testing": "^4.3.0",
74
- "ember-auto-import": "^2.2.4",
75
- "ember-cli": "~3.28.4",
76
- "ember-cli-dependency-checker": "^3.2.0",
72
+ "d3-shape": "^3.1.0",
73
+ "ember-a11y-testing": "^5.0.0",
74
+ "ember-auto-import": "^2.4.1",
75
+ "ember-cli": "~4.3.0",
76
+ "ember-cli-dependency-checker": "^3.3.1",
77
77
  "ember-cli-dependency-lint": "^2.0.1",
78
78
  "ember-cli-inject-live-reload": "^2.1.0",
79
79
  "ember-cli-netlify": "^0.4.1",
80
80
  "ember-cli-sri": "^2.1.1",
81
81
  "ember-cli-terser": "^4.0.2",
82
- "ember-css-modules": "^2.0.0",
82
+ "ember-css-modules": "^2.0.1",
83
83
  "ember-disable-prototype-extensions": "^1.1.3",
84
84
  "ember-export-application-global": "^2.0.1",
85
85
  "ember-load-initializers": "^2.1.2",
86
- "ember-maybe-import-regenerator": "^1.0.0",
86
+ "ember-named-blocks-polyfill": "^0.2.5",
87
87
  "ember-page-title": "^7.0.0",
88
88
  "ember-qunit": "^5.1.5",
89
89
  "ember-resolver": "^8.0.3",
90
- "ember-source": "~3.28.8",
90
+ "ember-source": "~4.3.0",
91
91
  "ember-source-channel-url": "^3.0.0",
92
- "ember-svg-jar": "^2.3.3",
93
- "ember-template-lint": "^3.14.0",
92
+ "ember-svg-jar": "^2.3.4",
93
+ "ember-template-lint": "^4.5.0",
94
94
  "ember-test-selectors": "^6.0.0",
95
95
  "ember-truth-helpers": "^3.0.0",
96
96
  "ember-try": "^2.0.0",
97
97
  "eslint": "^7.32.0",
98
- "eslint-config-prettier": "^8.3.0",
99
- "eslint-plugin-ember": "^10.5.8",
98
+ "eslint-config-prettier": "^8.5.0",
99
+ "eslint-plugin-ember": "^10.6.0",
100
100
  "eslint-plugin-node": "^11.1.0",
101
101
  "eslint-plugin-prettier": "^4.0.0",
102
102
  "lerna-changelog": "^2.2.0",
103
103
  "loader.js": "^4.7.0",
104
104
  "npm-run-all": "^4.1.5",
105
- "prettier": "^2.4.1",
106
- "qunit": "^2.17.2",
105
+ "prettier": "^2.6.2",
106
+ "qunit": "^2.18.2",
107
107
  "qunit-dom": "^2.0.0",
108
- "webpack": "^5.64.4"
108
+ "webpack": "^5.72.0"
109
109
  },
110
110
  "engines": {
111
111
  "node": "12.* || 14.* || >= 16"
@@ -1,27 +0,0 @@
1
- ---
2
- name: Ask for better documentation
3
- about: Ask for better documentation
4
- title: ''
5
- labels: 'enhance: documentation'
6
- assignees: ''
7
-
8
- ---
9
-
10
- Hello! Thanks for taking time to suggest how we can improve documentation.
11
-
12
- Here, documentation can mean a few different things, including README, code comments, and tests. Anything that will help everyone understand how to use `ember-container-query`!
13
-
14
-
15
- ## I would like to see... 🙋‍♀️🙋‍♂️
16
-
17
- A clear, concise description of what you want to happen.
18
-
19
-
20
- ## Why and how 💬
21
-
22
- A clear, concise description of why you want something to happen and how we might be able to solve the problem.
23
-
24
-
25
- ## Additional context ➕
26
-
27
- If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here.
@@ -1,27 +0,0 @@
1
- ---
2
- name: Ask for new feature or refactor
3
- about: Ask for new feature or refactor
4
- title: ''
5
- labels: 'enhance: code'
6
- assignees: ''
7
-
8
- ---
9
-
10
- Hello! Thanks for taking time to suggest how we can improve `ember-container-query`.
11
-
12
- Before you make a new issue, please search for similar issues. It's possible that someone has made a request aleady.
13
-
14
-
15
- ## I would like to see... 🙋‍♀️🙋‍♂️
16
-
17
- A clear, concise description of what you want to happen.
18
-
19
-
20
- ## Why and how 💬
21
-
22
- A clear, concise description of why you want something to happen and how we might be able to solve the problem.
23
-
24
-
25
- ## Additional context ➕
26
-
27
- If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here.
@@ -1,23 +0,0 @@
1
- ---
2
- name: Give feedback
3
- about: Give feedback
4
- title: ''
5
- labels: user feedback
6
- assignees: ''
7
-
8
- ---
9
-
10
- Hello! Thanks for taking time to give feedback.
11
-
12
- You can tell us:
13
-
14
- - How you used `ember-container-query`
15
- - What you liked about it
16
- - What you didn't like about it
17
-
18
- When sharing what you didn't like, please do give constructive feedback by suggesting a specific solution for how `ember-container-query` can be improved.
19
-
20
-
21
- ## Share your story 💞
22
-
23
- (My team and) I ...
@@ -1,53 +0,0 @@
1
- ---
2
- name: Report bug
3
- about: Report bug
4
- title: ''
5
- labels: bug
6
- assignees: ''
7
-
8
- ---
9
-
10
- Hello! Thanks for taking time to make a bug report.
11
-
12
- Before you make a new issue, please search for similar issues. It's possible that someone has reported this bug aleady.
13
-
14
-
15
- ## Describe the bug 🐞
16
-
17
- A clear and concise description of what the bug is.
18
-
19
-
20
- ## Expected behavior 🤔
21
-
22
- A clear and concise description of what you expected to happen.
23
-
24
-
25
- ## Minimal reproduction 🔬
26
-
27
- Describe steps to reproduce the behavior:
28
-
29
- 1. Go to '...'
30
- 2. Click on '...'
31
- 3. Scroll down to '...'
32
- 4. See error
33
-
34
- If possible, please, share a link with a minimal reproduction.
35
-
36
- <!--
37
- Create a minimal reproduction using one of the following:
38
- - Ember Twiddle: https://ember-twiddle.com/
39
- - Create a GitHub repository: https://guides.emberjs.com/release/getting-started/quick-start/
40
- -->
41
-
42
-
43
- ## Environment 🌍
44
-
45
- - Ember: -
46
- - Node.js/npm: -
47
- - OS: -
48
- - Browser: -
49
-
50
-
51
- ## Additional context ➕
52
-
53
- If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here.
@@ -1,33 +0,0 @@
1
- ---
2
- name: Report outdated dependency
3
- about: Report outdated dependency
4
- title: ''
5
- labels: 'enhance: dependency'
6
- assignees: ''
7
-
8
- ---
9
-
10
- Hello! Thanks for taking time to make an outdated dependency report.
11
-
12
- Before you make a new issue, please search for similar issues. It's possible that someone has made a request for update aleady.
13
-
14
-
15
- ## List outdated dependencies 🔗
16
-
17
- When you ran `yarn outdated`, what did you see?
18
-
19
- | Package | Current version | Latest version |
20
- |---|---|---|
21
- | ember-cli-babel | 7.19.0 | 7.20.0 |
22
- | ember-source | 3.18.1 | 3.19.0 |
23
- | ember-template-lint | 2.7.0 | 2.8.0 |
24
-
25
-
26
- ## Risk analysis ⚠️
27
-
28
- Are there breaking changes that we should be aware of? Please add links to the `CHANGELOG`s, if they are available.
29
-
30
-
31
- ## Additional context ➕
32
-
33
- If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here.
@@ -1,174 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- pull_request:
8
- schedule:
9
- # Run the workflow every Monday at 6 am CET
10
- - cron: '0 4 * * MON'
11
-
12
- env:
13
- NODE_VERSION: 14
14
- PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
15
- PERCY_PARALLEL_TOTAL: 9
16
-
17
- jobs:
18
- build-app:
19
- name: Build app for testing
20
- runs-on: ubuntu-latest
21
- timeout-minutes: 5
22
- steps:
23
- - name: Check out a copy of the repo
24
- uses: actions/checkout@v2
25
-
26
- - name: Use Node.js ${{ env.NODE_VERSION }}
27
- uses: actions/setup-node@v2
28
- with:
29
- cache: 'yarn'
30
- node-version: ${{ env.NODE_VERSION }}
31
-
32
- - name: Install dependencies
33
- run: yarn install --frozen-lockfile
34
-
35
- - name: Build app
36
- run: yarn build:test
37
-
38
- - name: Upload app
39
- uses: actions/upload-artifact@v2
40
- with:
41
- name: dist
42
- path: dist
43
-
44
-
45
- lint:
46
- name: Lint files and dependencies
47
- runs-on: ubuntu-latest
48
- timeout-minutes: 5
49
- steps:
50
- - name: Check out a copy of the repo
51
- uses: actions/checkout@v2
52
-
53
- - name: Use Node.js ${{ env.NODE_VERSION }}
54
- uses: actions/setup-node@v2
55
- with:
56
- cache: 'yarn'
57
- node-version: ${{ env.NODE_VERSION }}
58
-
59
- - name: Install dependencies
60
- run: yarn install --frozen-lockfile
61
-
62
- - name: Lint
63
- run: yarn lint
64
-
65
-
66
- test-addon:
67
- name: Test addon
68
- needs: [build-app]
69
- runs-on: ubuntu-latest
70
- strategy:
71
- fail-fast: false
72
- matrix:
73
- device:
74
- - 'w1-h1'
75
- - 'w2-h1'
76
- - 'w3-h1'
77
- - 'w1-h2'
78
- - 'w2-h2'
79
- - 'w3-h2'
80
- - 'w1-h3'
81
- - 'w2-h3'
82
- - 'w3-h3'
83
- include:
84
- - device: 'w1-h1'
85
- test-port: 7357
86
- - device: 'w2-h1'
87
- test-port: 7358
88
- - device: 'w3-h1'
89
- test-port: 7359
90
- - device: 'w1-h2'
91
- test-port: 7360
92
- - device: 'w2-h2'
93
- test-port: 7361
94
- - device: 'w3-h2'
95
- test-port: 7362
96
- - device: 'w1-h3'
97
- test-port: 7363
98
- - device: 'w2-h3'
99
- test-port: 7364
100
- - device: 'w3-h3'
101
- test-port: 7365
102
- timeout-minutes: 5
103
- steps:
104
- - name: Check out a copy of the repo
105
- uses: actions/checkout@v2
106
-
107
- - name: Use Node.js ${{ env.NODE_VERSION }}
108
- uses: actions/setup-node@v2
109
- with:
110
- cache: 'yarn'
111
- node-version: ${{ env.NODE_VERSION }}
112
-
113
- - name: Install dependencies
114
- run: yarn install --frozen-lockfile
115
-
116
- - name: Download app
117
- uses: actions/download-artifact@v2
118
- with:
119
- name: dist
120
- path: dist
121
-
122
- - name: Test
123
- run: npx percy exec -- yarn test:ember --path=dist --test-port=${{ matrix.test-port }}
124
- env:
125
- DEVICE: ${{ matrix.device }}
126
- PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
127
- PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
128
- PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
129
-
130
-
131
- test-compatibility:
132
- name: Test compatibility
133
- runs-on: ubuntu-latest
134
- strategy:
135
- fail-fast: false
136
- matrix:
137
- scenario:
138
- - 'ember-lts-3.20'
139
- - 'ember-lts-3.24'
140
- - 'ember-release'
141
- # - 'ember-beta'
142
- # - 'ember-canary'
143
- - 'embroider-safe'
144
- # - 'embroider-optimized'
145
- device:
146
- - 'w1-h3'
147
- - 'w2-h3'
148
- - 'w3-h3'
149
- include:
150
- - device: 'w1-h3'
151
- test-port: 7363
152
- - device: 'w2-h3'
153
- test-port: 7364
154
- - device: 'w3-h3'
155
- test-port: 7365
156
- timeout-minutes: 5
157
- steps:
158
- - name: Check out a copy of the repo
159
- uses: actions/checkout@v2
160
-
161
- - name: Use Node.js ${{ env.NODE_VERSION }}
162
- uses: actions/setup-node@v2
163
- with:
164
- cache: 'yarn'
165
- node-version: ${{ env.NODE_VERSION }}
166
-
167
- - name: Install dependencies
168
- run: yarn install --frozen-lockfile
169
-
170
- # Test compatibility without Percy
171
- - name: Test
172
- run: yarn test:ember-compatibility ${{ matrix.scenario }} --- yarn test:ember --test-port=${{ matrix.test-port }}
173
- env:
174
- DEVICE: ${{ matrix.device }}