Title: Public APIs missing in PowerShell 7.0.0-rc.2 since 6.2.3 · Issue #11619 · PowerShell/PowerShell · GitHub
Open Graph Title: Public APIs missing in PowerShell 7.0.0-rc.2 since 6.2.3 · Issue #11619 · PowerShell/PowerShell
X Title: Public APIs missing in PowerShell 7.0.0-rc.2 since 6.2.3 · Issue #11619 · PowerShell/PowerShell
Description: I've run an analysis comparing public APIs available in PowerShell 6.2.3 vs 7.0.0-rc.2 and there are some public APIs that are missing. While this is in many cases intentional, and likely to not be an issue, some may affect programs and ...
Open Graph Description: I've run an analysis comparing public APIs available in PowerShell 6.2.3 vs 7.0.0-rc.2 and there are some public APIs that are missing. While this is in many cases intentional, and likely to not be...
X Description: I've run an analysis comparing public APIs available in PowerShell 6.2.3 vs 7.0.0-rc.2 and there are some public APIs that are missing. While this is in many cases intentional, and likely to no...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Public APIs missing in PowerShell 7.0.0-rc.2 since 6.2.3","articleBody":"I've run an analysis comparing public APIs available in PowerShell 6.2.3 vs 7.0.0-rc.2 and there are some public APIs that are missing.\r\n\r\nWhile this is in many cases intentional, and likely to not be an issue, some may affect programs and tools trying to link against multiple versions of PowerShell (modules and some hosts). Trying to reference such an API would cause a sudden crash in one of these tools (the hard part being that the point at which the crash occurs may be hard to control).\r\n\r\nI'm still refining the analysis, but here is a list of classes and members that have been removed:\r\n\r\n## Types\r\n\r\n- ~~`System.Management.Automation.PSJobProxy`~~ [Workflow]\r\n- ~~`System.Management.Automation.PSChildJobProxy`~~ [Workflow]\r\n- ~~`System.Management.Automation.JobDataAddedEventArgs`~~ [Workflow]\r\n- `System.Management.Automation.PowerShellStreamType` (arguably workflow, but has generic name and namespace. Removed in https://github.com/PowerShell/PowerShell/pull/10083).\r\n- ~~`System.Management.Automation.WorkflowInfo`~~ [Workflow]\r\n- ~~`System.Management.Automation.Runspaces.PSSessionType` (arguably workflow, but possibly worth restoring with single value depending on how it's used)~~ Discussed with @daxian-dbw and @adityapatwardhan and decided that this is workflow-specific\r\n\r\n## Fields\r\n\r\n- ~~`System.Management.Automation.CommandTypes::Workflow`~~ [Workflow]\r\n- ~~`System.Management.Automation.PSEngineEvent::WorkflowJobStartEvent`~~ [Workflow]\r\n- ~~`System.Management.Automation.ModuleType::Workflow`~~ [Workflow]\r\n- ~~`System.Management.Automation.Internal.DebuggerUtils::SetVariableFunction`~~ [Internal]\r\n- ~~`System.Management.Automation.Internal.DebuggerUtils::RemoveVariableFunction`~~ [Internal]\r\n- ~~`System.Management.Automation.Internal.DebuggerUtils::GetPSCallStackOverrideFunction`~~ [Internal]\r\n- ~~`System.Management.Automation.Internal.PSMonitorRunspaceType::WorkflowInlineScript`~~ [Internal/Workflow]\r\n\r\n## Methods and constructors (captures events and properties)\r\n\r\n- ~~``Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache::ImportClasses(System.String,System.Tuple`2[System.String,System.Version],System.Collections.ObjectModel.Collection`1[System.Exception])``~~ [Internal]\r\n- ~~``Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache::GetCachedClasses()``~~ [Internal]\r\n- ~~``Microsoft.PowerShell.Commands.NewModuleManifestCommand::get_ClrVersion()``~~ **Fixed in https://github.com/PowerShell/PowerShell/pull/11623**\r\n- ~~``Microsoft.PowerShell.Commands.NewModuleManifestCommand::set_ClrVersion(System.Version)``~~ **Fixed in https://github.com/PowerShell/PowerShell/pull/11623**\r\n- ~~``Microsoft.PowerShell.Commands.RegisterPSSessionConfigurationCommand::get_SessionType()``~~ [Workflow]\r\n- ~~``Microsoft.PowerShell.Commands.RegisterPSSessionConfigurationCommand::set_SessionType(System.Management.Automation.Runspaces.PSSessionType)``~~ [Workflow]\r\n- ~~``Microsoft.PowerShell.Commands.InternalSymbolicLinkLinkCodeMethods::GetTarget(System.Management.Automation.PSObject)`` (arguably internal, but not internally namespaced. Return type changed in https://github.com/PowerShell/PowerShell/pull/8789)~~ Discussed with @daxian-dbw and @adityapatwardhan and decided that this is ok to remove\r\n- ~~``System.Management.Automation.Debugger::SetBreakpoints(System.Collections.Generic.IEnumerable`1[System.Management.Automation.Breakpoint])``~~ **Fixed in https://github.com/PowerShell/PowerShell/pull/11622**\r\n- ~~``System.Management.Automation.PowerShell::AsJobProxy()``~~ [Workflow]\r\n- ~~``System.Management.Automation.ScriptBlock::set_IsFilter(System.Boolean)`` **Formerly threw InvalidOperationException. Should assess whether this is considered breaking. Changed in https://github.com/PowerShell/PowerShell/pull/9732**~~ Discussed with @daxian-dbw and @adityapatwardhan and decided that this is not a real breaking change\r\n- ~~``System.Management.Automation.ScriptBlock::set_IsConfiguration(System.Boolean)`` **Formerly threw InvalidOperationException. Should assess whether this is considered breaking. Changed in https://github.com/PowerShell/PowerShell/pull/9732**~~ Discussed with @daxian-dbw and @adityapatwardhan and decided that this is not a real breaking change\r\n- ~~``System.Management.Automation.PSModuleInfo::get_ExportedWorkflows()``~~ [Workflow]\r\n- ~~``System.Management.Automation.Tracing.Tracer::EndpointRegistered(System.String,System.String,System.String)`` **Removed in https://github.com/PowerShell/PowerShell/pull/9618**~~ Discussed with @daxian-dbw, @adityapatwardhan and @JamesWTruher and decided that being a workflow-oriented, Windows-only API, this break is ok\r\n- ~~``System.Management.Automation.Internal.DebuggerUtils::GetWorkflowDebuggerFunctions()``~~ [Internal/Workflow]\r\n\r\nI'll continue this analysis to look into custom attributes","author":{"url":"https://github.com/rjmholt","@type":"Person","name":"rjmholt"},"datePublished":"2020-01-17T21:17:39Z","url":"https://github.com/PowerShell/PowerShell/issues/11619"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e3cdbd47-3ab4-e17f-c694-fde54a463237 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADC6:2C8E0B:D6612:1243F3:6AFD4ADE |
| html-safe-nonce | b082aad56c942d0b0b9215fec4f06fe13ac501244dca0e2b421893ec76268c08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREM2OjJDOEUwQjpENjYxMjoxMjQzRjM6NkFGRDRBREUiLCJ2aXNpdG9yX2lkIjoiNDA0MDM3NzQ3MjAzMjUyNTAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f94f4e7fbd197f8c3dc7e3063d0c0ad728a1862923e1e909b19bf54612e0e9c4 |
| hovercard-subject-tag | issue:551635970 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17f918bdfe8a9bb6d4446a2fe3488f335387bf19b3f6a96142a63ab931f62d1b/PowerShell/PowerShell/issues/11619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17f918bdfe8a9bb6d4446a2fe3488f335387bf19b3f6a96142a63ab931f62d1b/PowerShell/PowerShell/issues/11619 |
| og:image:alt | I've run an analysis comparing public APIs available in PowerShell 6.2.3 vs 7.0.0-rc.2 and there are some public APIs that are missing. While this is in many cases intentional, and likely to not be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjmholt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width