Skip to content

Commit 9b61699

Browse files
Merge branch 'master' into patch-1
2 parents ddcddb3 + 2bce2cc commit 9b61699

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3959
-879
lines changed

.github/actions/send-email/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
27 Bytes
Binary file not shown.

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Attach the packaged artifacts to the workflow output. These can be manually
7373
# downloaded for later inspection if necessary.
7474
- name: Archive artifacts
75-
uses: actions/upload-artifact@v1
75+
uses: actions/upload-artifact@v4
7676
with:
7777
name: dist
7878
path: dist

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# Attach the packaged artifacts to the workflow output. These can be manually
7878
# downloaded for later inspection if necessary.
7979
- name: Archive artifacts
80-
uses: actions/upload-artifact@v1
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: dist
8383
path: dist
@@ -108,7 +108,7 @@ jobs:
108108

109109
# Download the artifacts created by the stage_release job.
110110
- name: Download release candidates
111-
uses: actions/download-artifact@v1
111+
uses: actions/download-artifact@v4.1.7
112112
with:
113113
name: dist
114114

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Firebase Admin Changelog
2+
3+
For detailed version notes and breaking changes, see our release notes on GitHub:
4+
https://github.com/firebase/firebase-admin-node/releases

etc/firebase-admin.messaging.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,22 @@ export type Message = TokenMessage | TopicMessage | ConditionMessage;
189189
// @public
190190
export class Messaging {
191191
get app(): App;
192+
// @deprecated
193+
enableLegacyHttpTransport(): void;
192194
send(message: Message, dryRun?: boolean): Promise<string>;
193195
// @deprecated
194196
sendAll(messages: Message[], dryRun?: boolean): Promise<BatchResponse>;
195197
sendEach(messages: Message[], dryRun?: boolean): Promise<BatchResponse>;
196198
sendEachForMulticast(message: MulticastMessage, dryRun?: boolean): Promise<BatchResponse>;
197199
// @deprecated
198200
sendMulticast(message: MulticastMessage, dryRun?: boolean): Promise<BatchResponse>;
201+
// @deprecated
199202
sendToCondition(condition: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingConditionResponse>;
200203
// @deprecated
201204
sendToDevice(registrationTokenOrTokens: string | string[], payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingDevicesResponse>;
202205
// @deprecated
203206
sendToDeviceGroup(notificationKey: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingDeviceGroupResponse>;
207+
// @deprecated
204208
sendToTopic(topic: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingTopicResponse>;
205209
subscribeToTopic(registrationTokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;
206210
unsubscribeFromTopic(registrationTokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;

etc/firebase-admin.remote-config.api.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,41 @@ export interface AndCondition {
1313
conditions?: Array<OneOfCondition>;
1414
}
1515

16+
// @public
17+
export interface CustomSignalCondition {
18+
customSignalKey?: string;
19+
customSignalOperator?: CustomSignalOperator;
20+
targetCustomSignalValues?: string[];
21+
}
22+
23+
// @public
24+
export enum CustomSignalOperator {
25+
NUMERIC_EQUAL = "NUMERIC_EQUAL",
26+
NUMERIC_GREATER_EQUAL = "NUMERIC_GREATER_EQUAL",
27+
NUMERIC_GREATER_THAN = "NUMERIC_GREATER_THAN",
28+
NUMERIC_LESS_EQUAL = "NUMERIC_LESS_EQUAL",
29+
NUMERIC_LESS_THAN = "NUMERIC_LESS_THAN",
30+
NUMERIC_NOT_EQUAL = "NUMERIC_NOT_EQUAL",
31+
SEMANTIC_VERSION_EQUAL = "SEMANTIC_VERSION_EQUAL",
32+
SEMANTIC_VERSION_GREATER_EQUAL = "SEMANTIC_VERSION_GREATER_EQUAL",
33+
SEMANTIC_VERSION_GREATER_THAN = "SEMANTIC_VERSION_GREATER_THAN",
34+
SEMANTIC_VERSION_LESS_EQUAL = "SEMANTIC_VERSION_LESS_EQUAL",
35+
SEMANTIC_VERSION_LESS_THAN = "SEMANTIC_VERSION_LESS_THAN",
36+
SEMANTIC_VERSION_NOT_EQUAL = "SEMANTIC_VERSION_NOT_EQUAL",
37+
STRING_CONTAINS = "STRING_CONTAINS",
38+
STRING_CONTAINS_REGEX = "STRING_CONTAINS_REGEX",
39+
STRING_DOES_NOT_CONTAIN = "STRING_DOES_NOT_CONTAIN",
40+
STRING_EXACTLY_MATCHES = "STRING_EXACTLY_MATCHES",
41+
UNKNOWN = "UNKNOWN"
42+
}
43+
1644
// @public
1745
export type DefaultConfig = {
1846
[key: string]: string | number | boolean;
1947
};
2048

2149
// @public
22-
export type EvaluationContext = {
23-
randomizationId?: string;
24-
};
50+
export type EvaluationContext = UserProvidedSignals & PredefinedSignals;
2551

2652
// @public
2753
export interface ExplicitParameterValue {
@@ -78,6 +104,7 @@ export interface NamedCondition {
78104
// @public
79105
export interface OneOfCondition {
80106
andCondition?: AndCondition;
107+
customSignal?: CustomSignalCondition;
81108
false?: Record<string, never>;
82109
orCondition?: OrCondition;
83110
percent?: PercentCondition;
@@ -108,6 +135,11 @@ export enum PercentConditionOperator {
108135
UNKNOWN = "UNKNOWN"
109136
}
110137

138+
// @public
139+
export type PredefinedSignals = {
140+
randomizationId?: string;
141+
};
142+
111143
// @public
112144
export class RemoteConfig {
113145
// (undocumented)
@@ -205,6 +237,11 @@ export type ServerTemplateDataType = ServerTemplateData | string;
205237
// @public
206238
export type TagColor = 'BLUE' | 'BROWN' | 'CYAN' | 'DEEP_ORANGE' | 'GREEN' | 'INDIGO' | 'LIME' | 'ORANGE' | 'PINK' | 'PURPLE' | 'TEAL';
207239

240+
// @public
241+
export type UserProvidedSignals = {
242+
[key: string]: string | number;
243+
};
244+
208245
// @public
209246
export interface Value {
210247
asBoolean(): boolean;

0 commit comments

Comments
 (0)