Skip to content

Commit 9006668

Browse files
Merge branch 'master' into dev
# Conflicts: # CHANGELOG.md
2 parents 453dcc7 + ee7f33d commit 9006668

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

.circleci/config.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,35 @@ jobs:
287287
- run:
288288
name: Publish new enterprise version
289289
command: npm publish
290+
# Automate the enterprise injazat sdk changes
291+
release_injazat:
292+
working_directory: ~/project
293+
executor:
294+
name: node/default
295+
steps:
296+
- advanced-checkout/shallow-checkout
297+
- install_node_modules
298+
- run:
299+
name: Remove README.md file
300+
command: rm README.md
301+
- search_and_replace:
302+
file: package.json
303+
replace-pattern: 's/instabug-reactnative/@instabug\/react-native-injazat/g'
304+
- search_and_replace:
305+
file: cli/UploadSourcemaps.ts
306+
replace-pattern: 's/api.instabug.com\/api\/sdk/st001013mec1.instabug.com\/api\/sdk/g'
307+
- search_and_replace:
308+
file: android/native.gradle
309+
replace-pattern: 's/com\.instabug\.library:instabug:/com.instabug.library-injazat:instabug:/g'
310+
- run:
311+
name: Build the SDK
312+
command: yarn build
313+
- run:
314+
name: Authorize with npm
315+
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
316+
- run:
317+
name: Publish new enterprise version
318+
command: npm publish
290319
# Automate the enterprise D11 sdk changes
291320
release_d11:
292321
working_directory: ~/project
@@ -345,6 +374,31 @@ jobs:
345374
- run:
346375
working_directory: project
347376
command: Escape react-native publish
377+
publish_new_namespace:
378+
macos:
379+
xcode: 13.4.1
380+
resource_class: macos.m1.medium.gen1
381+
working_directory: '~'
382+
steps:
383+
- advanced-checkout/shallow-checkout
384+
- search_and_replace:
385+
file: package.json
386+
replace-pattern: 's/instabug-reactnative/@instabug\/react-native/g'
387+
- run: git clone [email protected]:Instabug/Escape.git
388+
- run:
389+
working_directory: Escape
390+
command: swift build -c release
391+
- run:
392+
working_directory: Escape/.build/release
393+
command: cp -f Escape /usr/local/bin/escape
394+
- install_node_modules:
395+
app-dir: project
396+
- run:
397+
working_directory: project
398+
command: yarn build
399+
- run:
400+
working_directory: project
401+
command: Escape react-native publish
348402

349403
generate_snapshot:
350404
executor:
@@ -421,6 +475,15 @@ workflows:
421475
filters:
422476
branches:
423477
only: master
478+
- hold_release_injazat:
479+
requires: *release_dependencies
480+
type: approval
481+
- hold_publish_new_namespace:
482+
requires: *release_dependencies
483+
type: approval
484+
filters:
485+
branches:
486+
only: master
424487
- hold_release_d11:
425488
requires: *release_dependencies
426489
type: approval
@@ -430,12 +493,21 @@ workflows:
430493
filters:
431494
branches:
432495
only: master
496+
- publish_new_namespace:
497+
requires:
498+
- hold_publish_new_namespace
499+
filters:
500+
branches:
501+
only: master
433502
- release_nn:
434503
requires:
435504
- hold_release_nn
436505
filters:
437506
branches:
438507
only: master
508+
- release_injazat:
509+
requires:
510+
- hold_release_injazat
439511
- release_d11:
440512
requires:
441513
- hold_release_d11

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
- Bump Instabug Android SDK to v12.9.0 ([#1168](https://github.com/Instabug/Instabug-React-Native/pull/1168)). [See release notes](https://github.com/Instabug/android/releases/tag/v12.9.0).
1313
- Bump Instabug iOS SDK to v12.9.0 ([#1168](https://github.com/Instabug/Instabug-React-Native/pull/1168)). [See release notes](https://github.com/instabug/instabug-ios/releases/tag/12.9.0).
1414

15+
### Fixed
16+
17+
- Remove the use of the nullish coalescing assignment operator (`??=`) causing a syntax error with older TypeScript versions ([#1166](https://github.com/Instabug/Instabug-React-Native/pull/1166)), closes [#1161
18+
](https://github.com/Instabug/Instabug-React-Native/issues/1161).
19+
1520
## [12.8.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.1...v12.8.0) (February 25, 2024)
1621

1722
### Added

src/modules/Instabug.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export const init = (config: InstabugConfig) => {
6464
captureUnhandledRejections();
6565

6666
// Default networkInterceptionMode to JavaScript
67-
config.networkInterceptionMode ??= NetworkInterceptionMode.javascript;
67+
if (config.networkInterceptionMode == null) {
68+
config.networkInterceptionMode = NetworkInterceptionMode.javascript;
69+
}
6870

6971
if (config.networkInterceptionMode === NetworkInterceptionMode.javascript) {
7072
NetworkLogger.setEnabled(true);

0 commit comments

Comments
 (0)