Skip to content

Public APIs missing in PowerShell 7.0.0-rc.2 since 6.2.3 #11619

Description

@rjmholt

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 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).

I'm still refining the analysis, but here is a list of classes and members that have been removed:

Types

  • System.Management.Automation.PSJobProxy [Workflow]
  • System.Management.Automation.PSChildJobProxy [Workflow]
  • System.Management.Automation.JobDataAddedEventArgs [Workflow]
  • System.Management.Automation.PowerShellStreamType (arguably workflow, but has generic name and namespace. Removed in Cleanup workflow - remove PSProxyJob #10083).
  • System.Management.Automation.WorkflowInfo [Workflow]
  • System.Management.Automation.Runspaces.PSSessionType (arguably workflow, but possibly worth restoring with single value depending on how it's used) Discussed with Dongbo Wang (@daxian-dbw) and Aditya Patwardhan (@adityapatwardhan) and decided that this is workflow-specific

Fields

  • System.Management.Automation.CommandTypes::Workflow [Workflow]
  • System.Management.Automation.PSEngineEvent::WorkflowJobStartEvent [Workflow]
  • System.Management.Automation.ModuleType::Workflow [Workflow]
  • System.Management.Automation.Internal.DebuggerUtils::SetVariableFunction [Internal]
  • System.Management.Automation.Internal.DebuggerUtils::RemoveVariableFunction [Internal]
  • System.Management.Automation.Internal.DebuggerUtils::GetPSCallStackOverrideFunction [Internal]
  • System.Management.Automation.Internal.PSMonitorRunspaceType::WorkflowInlineScript [Internal/Workflow]

Methods and constructors (captures events and properties)

I'll continue this analysis to look into custom attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-DevEx-SDKhosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions