@revenuecat/purchases-js 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -18
- package/dist/Purchases.es.d.ts +38 -0
- package/dist/Purchases.es.js +1705 -1541
- package/dist/Purchases.umd.js +4 -2
- package/package.json +3 -4
- package/dist/tsdoc-metadata.json +0 -11
package/README.md
CHANGED
|
@@ -228,24 +228,12 @@ This will update the files in `api-report` with the latest public API.
|
|
|
228
228
|
If it has uncommited changes, CI tests will fail. Run this command and commit the changes if
|
|
229
229
|
they are expected.
|
|
230
230
|
|
|
231
|
-
## Update reference docs
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
npm run generate-docs
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
This will update the reference docs in the `docs` folder with the latest public API docs.
|
|
238
|
-
If it has uncommited changes, CI tests will fail. Run this command and commit the changes if
|
|
239
|
-
they are expected.
|
|
240
|
-
|
|
241
231
|
# Publishing a new version
|
|
242
232
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
- Commit the changes in main
|
|
246
|
-
- Create a new tag with the version number and push:
|
|
233
|
+
New versions are automated weekly, but you can also trigger a new release through CircleCI or locally
|
|
234
|
+
following these steps:
|
|
247
235
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
236
|
+
- Run `bundle exec fastlane bump` and follow the instructions
|
|
237
|
+
- A PR should be created with the changes and a hold job in CircleCI.
|
|
238
|
+
- Approve the hold job once tests pass. This will create a tag and continue the release in CircleCI
|
|
239
|
+
- Merge the PR once it's been released
|
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -165,6 +165,37 @@ export declare enum ErrorCode {
|
|
|
165
165
|
SignatureVerificationError = 36
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Possible levels to log in the console.
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export declare enum LogLevel {
|
|
173
|
+
/**
|
|
174
|
+
* No logs will be shown in the console.
|
|
175
|
+
*/
|
|
176
|
+
Silent = 0,
|
|
177
|
+
/**
|
|
178
|
+
* Only errors will be shown in the console.
|
|
179
|
+
*/
|
|
180
|
+
Error = 1,
|
|
181
|
+
/**
|
|
182
|
+
* Only warnings and errors will be shown in the console.
|
|
183
|
+
*/
|
|
184
|
+
Warn = 2,
|
|
185
|
+
/**
|
|
186
|
+
* Only info, warnings, and errors will be shown in the console.
|
|
187
|
+
*/
|
|
188
|
+
Info = 3,
|
|
189
|
+
/**
|
|
190
|
+
* Debug, info, warnings, and errors will be shown in the console.
|
|
191
|
+
*/
|
|
192
|
+
Debug = 4,
|
|
193
|
+
/**
|
|
194
|
+
* All logs will be shown in the console.
|
|
195
|
+
*/
|
|
196
|
+
Verbose = 5
|
|
197
|
+
}
|
|
198
|
+
|
|
168
199
|
/**
|
|
169
200
|
* An offering is a collection of {@link Package} available for the user to purchase.
|
|
170
201
|
* For more info see https://docs.revenuecat.com/docs/entitlements
|
|
@@ -367,6 +398,13 @@ export declare interface Product {
|
|
|
367
398
|
* @public
|
|
368
399
|
*/
|
|
369
400
|
export declare class Purchases {
|
|
401
|
+
/**
|
|
402
|
+
* Set the log level. Logs of the given level and below will be printed
|
|
403
|
+
* in the console.
|
|
404
|
+
* Default is `LogLevel.Silent` so no logs will be printed in the console.
|
|
405
|
+
* @param logLevel - LogLevel to set.
|
|
406
|
+
*/
|
|
407
|
+
static setLogLevel(logLevel: LogLevel): void;
|
|
370
408
|
/**
|
|
371
409
|
* Get the singleton instance of Purchases. It's preferred to use the instance
|
|
372
410
|
* obtained from the {@link Purchases.configure} method when possible.
|