Skip to content

https provider not being exported for v1 functions in v4 SDK #1286

Closed
@YannicEl

Description

@YannicEl

[REQUIRED] Version info

node: v16.18.0

firebase-functions: 4.0.1

firebase-tools: 11.15.0

firebase-admin: 11.2.0

Test case

https://stackblitz.com/edit/typescript-z3azkd?file=index.ts

Steps to reproduce

Expected behavior

In the V3 SDK the https provider for V1 functions was removed meaning that imports like import { CallableContext } from 'firebase-functions/v1/https'; worked. In V4, as seen in this commit, the http provider was removed from the exports field of the root package.json. Was this a mistake or is this intended behavior? I am asking because other providers like auth or pubsub are exported just like in V3.

Actual behavior

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions