-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core-rest-pipeline] Add conditional exports #22804
Merged
Merged
Changes from 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ee27d04
Conditional export for core-rest-pipeline
jeremymeng 1c0c4fb
Add an option to dev-tool bundle command for .cjs output extension
jeremymeng db7e7ef
import "*" => import "*.js"
jeremymeng aa393d5
bump mocha version to ^10.0.0
jeremymeng 31632f4
- import * as => import
jeremymeng db5ed1f
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng d9fe9ee
- Fix linter rule to allow `"main": "dist/index.cjs"`
jeremymeng d874bc1
revert back to awesome example.com
jeremymeng 65524e6
Fix types export
jeremymeng 76a44b5
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng 5231081
Bump minor version and update CHANGELOG
jeremymeng 279160c
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng 00d9c25
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng 6bcb49c
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng 10f3fa6
Add copy of our types shim for CommonJS conditional export
jeremymeng 5bb5b13
remove `output-cjs-ext` option
jeremymeng ccc1365
Merge remote-tracking branch 'upstream/main' into core/cond-export
jeremymeng 57705cf
delete usage of removed dev-tool bundle option
jeremymeng df32ab1
Merge remote-tracking branch 'up/main' into core/cond-export
jeremymeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
File renamed without changes.
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,6 +1,6 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
export const SDK_VERSION: string = "1.9.2"; | ||
export const SDK_VERSION: string = "1.10.0"; | ||
|
||
export const DEFAULT_RETRY_POLICY_COUNT = 3; |
26 changes: 13 additions & 13 deletions
26
sdk/core/core-rest-pipeline/src/createPipelineFromOptions.ts
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using an option, could we just read the main path from package.json?
It may be best to defensively check that this field is set and starts with
dist
just to make sure we don't blow up someone's machine from a nasty config.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point! I changed to use the main path. We already have the linter to ensure the main path so I just did a minimal check for non-falsy values.