-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@shopify/polaris v11.0.0 major release (#7597)
## @shopify/polaris v11.0.0 ### Dependencies - [x] #8200 ### NodeJS - [x] #8201 ### TypeScript - [x] #8203 ### Components - [x] #7349 - [x] #7397 - [x] #7962 - [x] #8187 - [x] #8184 - [x] #8206 - [x] #7990 - [x] #8468 - [x] #8577 - [x] #8631 - [x] #8962 ## @shopify/polaris-tokens v7.0.0 ### Tokens - [x] #6920 - [x] #8245 - [x] #4826 - [x] #8405 ## @shopify/stylelint-polaris v7.0.0 - [x] #7622 - [x] #8419 # Post @shopify/polaris v11 shipping - [ ] #8420 ## Low priority or not ready breaking changes - [x] Remove deprecated layout components - [x] Release Layout primitive components --------- Co-authored-by: Tim Layton <[email protected]> Co-authored-by: Ryan Musgrave <[email protected]> Co-authored-by: Ryan Musgrave <[email protected]> Co-authored-by: aveline <[email protected]> Co-authored-by: Kyle Durand <[email protected]> Co-authored-by: Matt Gregg <[email protected]> Co-authored-by: Alex Page <[email protected]> Co-authored-by: Lo Kim <[email protected]> Co-authored-by: Ben Scott <[email protected]> Co-authored-by: Aaron Casanova <[email protected]> Co-authored-by: Sam Rose <[email protected]> Co-authored-by: Sam Rose <[email protected]> Co-authored-by: Marc Thomas <[email protected]> Co-authored-by: Alex Page <[email protected]> Co-authored-by: Chloe Rice <[email protected]> Co-authored-by: Chloe Rice <[email protected]> Co-authored-by: Joe Thomas <[email protected]> Co-authored-by: Yuraima Estevez <[email protected]> Co-authored-by: shopify-github-actions-access[bot] <109624739+shopify-github-actions-access[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
920e62e
commit 9e1350e
Showing
404 changed files
with
6,366 additions
and
16,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Changed `breadcrumbs` from an array to a single `backAction` since only one is supported. | ||
Removed deprecated `breadcrumbs` prop from `Page` and `Breadcrumbs`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@shopify/polaris-cli': major | ||
'@shopify/polaris': major | ||
'polaris.shopify.com': major | ||
--- | ||
|
||
Removed support for multiple versions of TypeScript with `downlevel-dts` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
No longer transpile optional chaining, nullish coalescing or numeric separators, as our target browser environments all have native support for these syntaxes. This removes support for apps using webpack4, which unable to parse these syntaxes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Removed support for React version 16 and 17 in favor of version 18 as the minimum supported version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/polaris': major | ||
'polaris.shopify.com': minor | ||
--- | ||
|
||
Replaced `Tabs` with `AlphaTabs` and replaced `Filters` with `AlphaFilters` component code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/polaris': major | ||
'polaris.shopify.com': minor | ||
--- | ||
|
||
Replaced `Stack` with `AlphaStack` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Removed `Polaris.VERSION` from the global window object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Removed deprecated `breadcrumbs` prop from `SkeletonPage` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'polaris.shopify.com': patch | ||
--- | ||
|
||
Updated `Text` component status from beta to stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@shopify/polaris-cli': major | ||
'polaris-for-vscode': major | ||
'@shopify/polaris-icons': major | ||
'@shopify/polaris-migrator': major | ||
'@shopify/polaris': major | ||
'@shopify/polaris-tokens': major | ||
'polaris.shopify.com': major | ||
'@shopify/stylelint-polaris': major | ||
--- | ||
|
||
Removed support for NodeJS version 14 and set version 16 as minimum supported version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/polaris': major | ||
'polaris.shopify.com': minor | ||
--- | ||
|
||
Removed deprecated `DisplayText`, `Heading`, `Subheading`, `Caption`, `TextStyle`, and `VisuallyHidden` components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'polaris.shopify.com': minor | ||
--- | ||
|
||
Added "What's new" color page and updated design/colors for the new color tokens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@shopify/polaris': major | ||
'polaris.shopify.com': minor | ||
--- | ||
|
||
Replaced `Card` with `AlphaCard` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Removed `KonamiCode` component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': major | ||
--- | ||
|
||
Removed deprecated `preventMeasuringOnChildUpdate` prop on `Collapsible` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.13.0 | ||
v18.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,58 @@ | ||
/** | ||
* @type {import('@babel/core').TransformOptions} | ||
*/ | ||
module.exports = { | ||
presets: [['@shopify/babel-preset', {typescript: true, react: true}]], | ||
babelrcRoots: [ | ||
'.', | ||
// Note: The following projects use rootMode: 'upward' to inherit | ||
// and merge with this root level config. | ||
'./polaris-codemods', | ||
'./polaris-migrator', | ||
'./polaris-tokens', | ||
'./polaris-icons', | ||
'./polaris-react', | ||
], | ||
module.exports = function (api) { | ||
const envName = api.env(); | ||
const development = envName === 'development' || envName === 'test'; | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{useBuiltIns: 'entry', corejs: '3.0', bugfixes: true}, | ||
], | ||
['@babel/preset-typescript'], | ||
['@babel/preset-react', {development, useBuiltIns: true}], | ||
], | ||
assumptions: { | ||
setPublicClassFields: true, | ||
privateFieldsAsProperties: true, | ||
// nothing accesses `document.all`: | ||
noDocumentAll: true, | ||
// nothing relies on class constructors invoked without `new` throwing: | ||
noClassCalls: true, | ||
// nothing should be relying on tagged template strings being frozen: | ||
mutableTemplateObject: true, | ||
// nothing is relying on Function.prototype.length: | ||
ignoreFunctionLength: true, | ||
// nothing is relying on mutable re-exported bindings: | ||
constantReexports: true, | ||
// don't bother marking Module records non-enumerable: | ||
enumerableModuleMeta: true, | ||
// nothing uses [[Symbol.toPrimitive]]: | ||
// (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive) | ||
ignoreToPrimitiveHint: true, | ||
// nothing relies on spread copying Symbol keys: ({...{ [Symbol()]: 1 }}) | ||
objectRestNoSymbols: true, | ||
// nothing relies on `new (() => {})` throwing: | ||
noNewArrows: true, | ||
// transpile object spread to assignment instead of defineProperty(): | ||
setSpreadProperties: true, | ||
// nothing should be using custom iterator protocol: | ||
skipForOfIteratorClosing: true, | ||
// nothing inherits from a constructor function with explicit return value: | ||
superIsCallableConstructor: true, | ||
// nothing relies on CJS-transpiled namespace imports having all properties prior to module execution completing: | ||
noIncompleteNsImportDetection: true, | ||
}, | ||
babelrcRoots: [ | ||
'.', | ||
// Note: The following projects use rootMode: 'upward' to inherit | ||
// and merge with this root level config. | ||
'./polaris-codemods', | ||
'./polaris-migrator', | ||
'./polaris-tokens', | ||
'./polaris-icons', | ||
'./polaris-react', | ||
], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.