generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Typescript ESM module resolution strategy
- Loading branch information
Showing
42 changed files
with
456 additions
and
195 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,36 @@ | ||
--- | ||
'@finos/eslint-plugin-legend-studio': major | ||
'@finos/legend-application': major | ||
'@finos/legend-art': major | ||
'@finos/legend-dev-utils': major | ||
'@finos/legend-extension-dsl-data-space': major | ||
'@finos/legend-extension-dsl-diagram': major | ||
'@finos/legend-extension-dsl-persistence': major | ||
'@finos/legend-extension-dsl-text': major | ||
'@finos/legend-extension-external-format-json-schema': major | ||
'@finos/legend-extension-external-language-morphir': major | ||
'@finos/legend-extension-external-store-service': major | ||
'@finos/legend-extension-mapping-generation': major | ||
'@finos/legend-graph': major | ||
'@finos/legend-graph-extension-collection': major | ||
'@finos/legend-manual-tests': major | ||
'@finos/legend-model-storage': major | ||
'@finos/legend-query': major | ||
'@finos/legend-server-depot': major | ||
'@finos/legend-server-sdlc': major | ||
'@finos/legend-shared': major | ||
'@finos/legend-studio': major | ||
'@finos/legend-studio-extension-management-toolkit': major | ||
'@finos/legend-studio-extension-query-builder': major | ||
'@finos/legend-taxonomy': major | ||
'@finos/legend-tracer-extension-zipkin': major | ||
--- | ||
|
||
**BREAKING CHANGE:** Use `NodeNext` (`ESM` module resolution strategy for `Typescript`). Read more about this [here](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs). This transition would be relatively smooth, except that we must use `ESM`-styled import (with extensions) for relative path. For example: | ||
|
||
```ts | ||
// before | ||
import { someFunction } from './Utils'; | ||
// after | ||
import { someFunction } from './Utils.js'; | ||
``` |
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 @@ | ||
--- | ||
'@finos/legend-dev-utils': major | ||
--- | ||
|
||
**BREAKING CHANGE:** Cleanup `Webpack` configuration utility: removed field `extraBabelLoaderIncludePatterns`. |
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,33 @@ | ||
--- | ||
'@finos/eslint-plugin-legend-studio': patch | ||
'@finos/legend-application': patch | ||
'@finos/legend-art': patch | ||
'@finos/legend-dev-utils': patch | ||
'@finos/legend-extension-dsl-data-space': patch | ||
'@finos/legend-extension-dsl-diagram': patch | ||
'@finos/legend-extension-dsl-persistence': patch | ||
'@finos/legend-extension-dsl-text': patch | ||
'@finos/legend-extension-external-format-json-schema': patch | ||
'@finos/legend-extension-external-language-morphir': patch | ||
'@finos/legend-extension-external-store-service': patch | ||
'@finos/legend-extension-mapping-generation': patch | ||
'@finos/legend-graph': patch | ||
'@finos/legend-graph-extension-collection': patch | ||
'@finos/legend-manual-tests': patch | ||
'@finos/legend-model-storage': patch | ||
'@finos/legend-query': patch | ||
'@finos/legend-query-app': patch | ||
'@finos/legend-query-deployment': patch | ||
'@finos/legend-server-depot': patch | ||
'@finos/legend-server-sdlc': patch | ||
'@finos/legend-shared': patch | ||
'@finos/legend-studio': patch | ||
'@finos/legend-studio-app': patch | ||
'@finos/legend-studio-deployment': patch | ||
'@finos/legend-studio-extension-management-toolkit': patch | ||
'@finos/legend-studio-extension-query-builder': patch | ||
'@finos/legend-taxonomy': patch | ||
'@finos/legend-taxonomy-app': patch | ||
'@finos/legend-taxonomy-deployment': patch | ||
'@finos/legend-tracer-extension-zipkin': patch | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* Previously, these exports rely on ES module interop to expose `default` export | ||
* properly. But since we use `ESM` for Typescript resolution now, we lose this | ||
* so we have to workaround by importing these and re-export them from CJS | ||
* | ||
* TODO: remove these when the package properly work with Typescript's nodenext | ||
* module resolution | ||
* | ||
* @workaround ESM | ||
* See https://github.com/microsoft/TypeScript/issues/49298 | ||
*/ | ||
export { default as Fuse } from 'fuse.js'; |
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 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* Previously, these exports rely on ES module interop to expose `default` export | ||
* properly. But since we use `ESM` for Typescript resolution now, we lose this | ||
* so we have to workaround by importing these and re-export them from CJS | ||
* | ||
* TODO: remove these when the package properly work with Typescript's nodenext | ||
* module resolution | ||
* | ||
* @workaround ESM | ||
* See https://github.com/microsoft/TypeScript/issues/49298 | ||
*/ | ||
export { default as CreatableSelect, type Props } from 'react-select/creatable'; | ||
export { default as Select, createFilter } from 'react-select'; |
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
Oops, something went wrong.