Skip to content

Commit 5b6664d

Browse files
authored
Merge branch 'main' into feat/webpack-cleanup
2 parents 9553afb + 0c14371 commit 5b6664d

File tree

128 files changed

+21092
-536
lines changed

Some content is hidden

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

128 files changed

+21092
-536
lines changed

.github/workflows/apps_automated.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: 'apps/automated'
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
workflow_dispatch:
99

1010
jobs:
1111
test:
12-
runs-on: macos-latest
12+
runs-on: macos-12
1313

1414
steps:
1515
- uses: actions/checkout@v2

.github/workflows/npm_release_core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: '@nativescript/core -> npm'
22

33
on:
44
push:
5-
branches: [ 'master' ]
5+
branches: [ 'main' ]
66
paths:
77
- 'packages/core/**'
88
workflow_dispatch:

.github/workflows/npm_release_types.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: '@nativescript/types -> npm'
33

44
on:
55
push:
6-
branches: [ 'master' ]
6+
branches: [ 'main' ]
77
paths:
88
- 'packages/types/**'
99

.github/workflows/npm_release_webpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: '@nativescript/webpack -> npm'
22

33
on:
44
push:
5-
branches: [ 'master' ]
5+
branches: [ 'main' ]
66
paths:
77
- 'packages/webpack/**'
88

CHANGELOG.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1+
## [8.3.1](https://github.com/NativeScript/NativeScript/compare/8.3.0-core...8.3.1) (2022-07-21)
2+
3+
4+
### Bug Fixes
5+
6+
* **core:** correct typings in ObservableArray ([#9961](https://github.com/NativeScript/NativeScript/issues/9961)) ([01643f5](https://github.com/NativeScript/NativeScript/commit/01643f513ed3e71b98c3a0bdd9fa15f0b1b7970d))
7+
* **core:** correctly polyfill tslib ([#9894](https://github.com/NativeScript/NativeScript/issues/9894)) ([20efd36](https://github.com/NativeScript/NativeScript/commit/20efd3605e5c8c654bba26f6d1f1423d7af51747))
8+
* **core:** FormattedString.spans is now restored ([#9960](https://github.com/NativeScript/NativeScript/issues/9960)) ([0477044](https://github.com/NativeScript/NativeScript/commit/0477044d6f41003d679ef3dd655643b380dca188))
9+
10+
11+
# [8.3.0](https://github.com/NativeScript/NativeScript/compare/5.0.7-webpack...8.3.0) (2022-07-14)
12+
13+
14+
### Bug Fixes
15+
16+
* **android:** connectivity reporting none on resume ([#9915](https://github.com/NativeScript/NativeScript/issues/9915)) ([413fa2e](https://github.com/NativeScript/NativeScript/commit/413fa2eb4b044163a701614a596a06512082ba8a))
17+
* **android:** content uri handling improvements ([#9936](https://github.com/NativeScript/NativeScript/issues/9936)) ([9fcd440](https://github.com/NativeScript/NativeScript/commit/9fcd440690e894c80ca88a528309f619fc8997f9))
18+
* **android:** device language and region from system configuration. ([#9868](https://github.com/NativeScript/NativeScript/issues/9868)) ([ad01e6b](https://github.com/NativeScript/NativeScript/commit/ad01e6b990e14f36e637886b2e0e0c9594daf246))
19+
* **android:** font icons had incorrect fallback size ([#9914](https://github.com/NativeScript/NativeScript/issues/9914)) ([e8bed44](https://github.com/NativeScript/NativeScript/commit/e8bed44f5b82fda088aa9f6033a9ec76825811ee))
20+
* **android:** Textfield focus fix ([#9885](https://github.com/NativeScript/NativeScript/issues/9885)) ([fbd1e23](https://github.com/NativeScript/NativeScript/commit/fbd1e23c1c9b63ddcab9b25812c10e62ca9f6da6))
21+
* **core:** allow View subclass to force onLayoutChangeListener ([#9886](https://github.com/NativeScript/NativeScript/issues/9886)) ([6ccf5a2](https://github.com/NativeScript/NativeScript/commit/6ccf5a22e61b4950f549929f2e5c432bf3e03324))
22+
* **core:** android wrong background state + current value accessors ([#9883](https://github.com/NativeScript/NativeScript/issues/9883)) ([58a7206](https://github.com/NativeScript/NativeScript/commit/58a720699fe012b382446533f29ef3382ddd862e))
23+
* **core:** ensure platforms/android/core.aar is not included in pack ([a1dff9a](https://github.com/NativeScript/NativeScript/commit/a1dff9a1dbc5f8a32fffe28fa1d950ec12576061))
24+
* **core:** import fix ([45dcada](https://github.com/NativeScript/NativeScript/commit/45dcada01ab6f44d7fdc9d28f3b40ce1015053bc))
25+
* **core:** metadata filtering ([#9946](https://github.com/NativeScript/NativeScript/issues/9946)) ([4a5e2e2](https://github.com/NativeScript/NativeScript/commit/4a5e2e2ac0876a6697ebb468e2825f358c3a63e3))
26+
* **core:** navigatingToEvent allows access to resolvedPage now ([#9954](https://github.com/NativeScript/NativeScript/issues/9954)) ([38142a6](https://github.com/NativeScript/NativeScript/commit/38142a6aebee4c66ce0ae189dd68e93ee2be2db8))
27+
* **core:** trace log using a wrong parameter ([#9951](https://github.com/NativeScript/NativeScript/issues/9951)) ([cd5d2c2](https://github.com/NativeScript/NativeScript/commit/cd5d2c2f4df79cc2b7026d86c386a60adda414f6))
28+
* ensure reusable ProxyViewContainer re-adds native children ([#9882](https://github.com/NativeScript/NativeScript/issues/9882)) ([0a082b3](https://github.com/NativeScript/NativeScript/commit/0a082b340305eac9b9b509225dcd1d5f58766be7))
29+
* export 'dataSerialize' from utils ([#9909](https://github.com/NativeScript/NativeScript/issues/9909)) ([a85a72d](https://github.com/NativeScript/NativeScript/commit/a85a72d961185eb311df030b515decb4813d41c8))
30+
* incorrect font icon size conversion to device pixels. ([#9910](https://github.com/NativeScript/NativeScript/issues/9910)) ([d3718e5](https://github.com/NativeScript/NativeScript/commit/d3718e5e5f6e6b241b2dec392cf53e65e869d6f5))
31+
* **ios:** apply proper border radius to box shadow and view sublayers ([#9881](https://github.com/NativeScript/NativeScript/issues/9881)) ([b7e6128](https://github.com/NativeScript/NativeScript/commit/b7e612857681f8d778c42b3df211494067f911fd))
32+
* **ios:** do not convert tap event data to device pixels twice ([#9935](https://github.com/NativeScript/NativeScript/issues/9935)) ([3681fd4](https://github.com/NativeScript/NativeScript/commit/3681fd43840e67aaccf6e2b2d5c47d72a09b78b4))
33+
* **ios:** label measure correct height when using custom numberOfLines ([#9945](https://github.com/NativeScript/NativeScript/issues/9945)) ([2ff0891](https://github.com/NativeScript/NativeScript/commit/2ff0891f933dc0e717efce7e5daea8f8488d5fa9))
34+
* **ios:** memory leak after using 'showModal' passing any Page as parameter ([#9939](https://github.com/NativeScript/NativeScript/issues/9939)) ([4db4e4a](https://github.com/NativeScript/NativeScript/commit/4db4e4af275048fb58ef0fab3a2ac7e3758ba783))
35+
* **ios:** memory leak after using the 'presentViewControllerNavigation' ([#9934](https://github.com/NativeScript/NativeScript/issues/9934)) ([957af32](https://github.com/NativeScript/NativeScript/commit/957af328597c53a38a48c9c1133419a55cbbea25))
36+
* **ios:** proper disposal and recreation of iOS native views ([#9879](https://github.com/NativeScript/NativeScript/issues/9879)) ([f548fdc](https://github.com/NativeScript/NativeScript/commit/f548fdc73512bb74e7ec500550e2db0166e7237b))
37+
* **live-sync:** navigation history is now maintained ([#9889](https://github.com/NativeScript/NativeScript/issues/9889)) ([665009b](https://github.com/NativeScript/NativeScript/commit/665009b863c0589bf5921f512e3878471255ea82))
38+
* **RootLayout:** resilience around shadeCover options ([e5fffa1](https://github.com/NativeScript/NativeScript/commit/e5fffa1dad2f7482387d396f8eaebabf96be5011))
39+
* **TabView:** item styling improvements for iOS 15+ ([#9888](https://github.com/NativeScript/NativeScript/issues/9888)) ([7ccc949](https://github.com/NativeScript/NativeScript/commit/7ccc9497124528d7e83a8217ab80545dec6f6691))
40+
* **ui-mobile-base:** Android http request body was not sent if method was DELETE ([#9887](https://github.com/NativeScript/NativeScript/issues/9887)) ([57e4973](https://github.com/NativeScript/NativeScript/commit/57e4973da5b06cf8e3950293c24361f5a677c245))
41+
* **webpack:** NativeClass decorator should run after angular transformers in AOT mode ([#9908](https://github.com/NativeScript/NativeScript/issues/9908)) ([c9f77a0](https://github.com/NativeScript/NativeScript/commit/c9f77a0a22708cb07978c67c84ff010390e9f5f7))
42+
* **webpack:** unit test runner with node 18+ ([#9952](https://github.com/NativeScript/NativeScript/issues/9952)) ([97a21bb](https://github.com/NativeScript/NativeScript/commit/97a21bb0d7e429e2a1aa6023c905ba02cd4be56b))
43+
44+
45+
### Features
46+
47+
* **android:** runOnMain, postFrameCallback & removeFrameCallback ([#9943](https://github.com/NativeScript/NativeScript/issues/9943)) ([49343cb](https://github.com/NativeScript/NativeScript/commit/49343cb9b4ad5be895dd25ef28361b3a100d9249))
48+
* **application:** expose `inBackground` and `suspended` ([#9897](https://github.com/NativeScript/NativeScript/issues/9897)) ([8987bab](https://github.com/NativeScript/NativeScript/commit/8987babb0801fbc3320bf50877bebefb9702a292))
49+
* **core:** iterable ObservableArray ([#9824](https://github.com/NativeScript/NativeScript/issues/9824)) ([df74a8b](https://github.com/NativeScript/NativeScript/commit/df74a8baa8d815207c4edfa3909f57f497a9e63a))
50+
* **core:** maxLines support for all text components ([#9884](https://github.com/NativeScript/NativeScript/issues/9884)) ([7ff7233](https://github.com/NativeScript/NativeScript/commit/7ff7233737e2bc12849e922bc2335d3756ff353d))
51+
* **ios:** Utils.getRootViewController ([29004d9](https://github.com/NativeScript/NativeScript/commit/29004d9048ab84d774d6978e685ea7b0e47b625b))
52+
* **mac:** support for Mac Catalyst with ui-mobile-base ([fc77c92](https://github.com/NativeScript/NativeScript/commit/fc77c92e114c8a021a6608bb9ff3c8857263abbd))
53+
* **RootLayout:** add opened and closed events ([#9893](https://github.com/NativeScript/NativeScript/issues/9893)) ([7b11b6a](https://github.com/NativeScript/NativeScript/commit/7b11b6acfe1e71b803ef65f98b8ac5f271928d56))
54+
* **types-minimal:** paired down typings optimized for smaller footprint editing environments ([#9947](https://github.com/NativeScript/NativeScript/issues/9947)) ([f49e412](https://github.com/NativeScript/NativeScript/commit/f49e412660d80ec55f7fd146b24ae1e77b0ecbea))
55+
* **Utils:** dataSerialize, dataDeserialize, numberHasDecimals, numberIs64Bit ([cab5947](https://github.com/NativeScript/NativeScript/commit/cab59473f39066abb667d2039d5333be93488035))
56+
57+
58+
### Performance Improvements
59+
60+
* cache UIFont construction based on FontDescriptor ([#9948](https://github.com/NativeScript/NativeScript/issues/9948)) ([8756df3](https://github.com/NativeScript/NativeScript/commit/8756df30d4b3b30e139065583ad57a015006a341))
61+
62+
63+
### BREAKING CHANGES
64+
65+
* **core:** Method push will now handle arguments just like Array.prototype.push.
66+
Certain existing methods will now return ObservableArray instance instead.
67+
Callback arguments that contained an array argument themselves will now contain an ObservableArray argument.
68+
* **android:** Exposes language and region values from android system configuration. If you were working around locale handling because this wasn't originally the case you can likely remove extra conditions as this should reflect more accurately now.
69+
* **ios:** tapData.getX() and tapData.getY() will now return correctly in DIP, so any extra conversions (like calling toDevicePixels) twice must be changed.
70+
* **core:** When using `navigatingToEvent` event.entry, the `backstackEntry` object is now returned which has an `entry` property on it if you still need it.
71+
72+
73+
174
## [8.2.5](https://github.com/NativeScript/NativeScript/compare/8.2.4-core...8.2.5) (2022-06-15)
275

376

apps/automated/src/application-settings/application-settings-tests.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var appSettings = require('@nativescript/core/application-settings');
1+
import { ApplicationSettings as appSettings } from '@nativescript/core';
22
import * as TKUnit from '../tk-unit';
33

44
var stringKey: string = 'stringKey';
@@ -62,9 +62,9 @@ export var testHasKey = function () {
6262
TKUnit.assert(!appSettings.hasKey(noStringKey), 'There is a key: ' + noStringKey);
6363
TKUnit.assert(!appSettings.hasKey(noNumberKey), 'There is a key: ' + noNumberKey);
6464

65-
TKUnit.assert(appSettings.hasKey(boolKey), 'There is no key: ' + boolKey);
65+
TKUnit.assert(!appSettings.hasKey(boolKey), 'There is no key: ' + boolKey);
6666
TKUnit.assert(appSettings.hasKey(stringKey), 'There is no key: ' + stringKey);
67-
TKUnit.assert(appSettings.hasKey(numberKey), 'There is no key: ' + numberKey);
67+
TKUnit.assert(!appSettings.hasKey(numberKey), 'There is no key: ' + numberKey);
6868
};
6969

7070
export var testRemove = function () {
@@ -124,6 +124,7 @@ export var testInvalidKey = function () {
124124
}
125125

126126
try {
127+
// @ts-ignore
127128
appSettings.hasKey(123);
128129
TKUnit.assert(false, 'There is a key number');
129130
} catch (e) {
@@ -135,41 +136,47 @@ export var testInvalidKey = function () {
135136

136137
export var testInvalidValue = function () {
137138
try {
139+
// @ts-ignore
138140
appSettings.setBoolean(boolKey, 'str');
139141
TKUnit.assert(false, 'There is a key undefined');
140142
} catch (e) {
141143
// we should receive an exception here
142144
}
143145

144146
try {
147+
// @ts-ignore
145148
appSettings.setBoolean(boolKey, 123);
146149
TKUnit.assert(false, 'There is a key undefined');
147150
} catch (e) {
148151
// we should receive an exception here
149152
}
150153

151154
try {
155+
// @ts-ignore
152156
appSettings.setString(boolKey, true);
153157
TKUnit.assert(false, 'There is a key undefined');
154158
} catch (e) {
155159
// we should receive an exception here
156160
}
157161

158162
try {
163+
// @ts-ignore
159164
appSettings.setString(boolKey, 123);
160165
TKUnit.assert(false, 'There is a key undefined');
161166
} catch (e) {
162167
// we should receive an exception here
163168
}
164169

165170
try {
171+
// @ts-ignore
166172
appSettings.setNumber(boolKey, true);
167173
TKUnit.assert(false, 'There is a key undefined');
168174
} catch (e) {
169175
// we should receive an exception here
170176
}
171177

172178
try {
179+
// @ts-ignore
173180
appSettings.setNumber(boolKey, '123');
174181
TKUnit.assert(false, 'There is a key undefined');
175182
} catch (e) {

apps/automated/src/image-source/image-source-tests.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ export function testSaveToFile_WithQuality() {
6565
TKUnit.assert(fs.File.exists(path), 'Image not saved to file');
6666
}
6767

68-
export function testFromFile() {
69-
// >> imagesource-load-local
70-
const folder = fs.knownFolders.documents();
71-
const path = fs.path.join(folder.path, 'test.png');
72-
const img = ImageSource.fromFileSync(path);
73-
// << imagesource-load-local
74-
75-
TKUnit.assert(img.height > 0, 'image.fromResource failed');
76-
77-
// remove the image from the file system
78-
const file = folder.getFile('test.png');
79-
file.remove();
80-
TKUnit.assert(!fs.File.exists(path), 'test.png not removed');
81-
}
68+
// export function testFromFile() {
69+
// // >> imagesource-load-local
70+
// const folder = fs.knownFolders.documents();
71+
// const path = fs.path.join(folder.path, 'test.png');
72+
// const img = ImageSource.fromFileSync(path);
73+
// // << imagesource-load-local
74+
75+
// TKUnit.assert(img.height > 0, 'image.fromResource failed');
76+
77+
// // remove the image from the file system
78+
// const file = folder.getFile('test.png');
79+
// file.remove();
80+
// TKUnit.assert(!fs.File.exists(path), 'test.png not removed');
81+
// }
8282

8383
export function testFromAssetFileNotFound(done) {
8484
let asset = new imageAssetModule.ImageAsset('invalidFile.png');

apps/automated/src/test-runner.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ allTests['VIRTUAL-ARRAY'] = virtualArrayTests;
7070
import * as observableTests from './data/observable-tests';
7171
allTests['OBSERVABLE'] = observableTests;
7272

73-
import * as animationFrameTests from './animation-frame/animation-frame';
74-
allTests['ANIMATION-FRAME'] = animationFrameTests;
73+
// import * as animationFrameTests from './animation-frame/animation-frame';
74+
// allTests['ANIMATION-FRAME'] = animationFrameTests;
7575

7676
import * as colorTests from './color/color-tests';
7777
allTests['COLOR'] = colorTests;
7878

7979
import * as bindableTests from './ui/core/bindable/bindable-tests';
8080
allTests['BINDABLE'] = bindableTests;
8181

82-
import * as bindingExpressionTests from './ui/core/bindable/binding-expressions-tests';
83-
allTests['BINDING-EXPRESSIONS'] = bindingExpressionTests;
82+
// import * as bindingExpressionTests from './ui/core/bindable/binding-expressions-tests';
83+
// allTests['BINDING-EXPRESSIONS'] = bindingExpressionTests;
8484

8585
import * as xmlParserTests from './xml-parser-tests/xml-parser-tests';
8686
allTests['XML-PARSER'] = xmlParserTests;
@@ -115,8 +115,8 @@ allTests['SCROLL-VIEW'] = scrollViewTests;
115115
import * as actionBarTests from './ui/action-bar/action-bar-tests';
116116
allTests['ACTION-BAR'] = actionBarTests;
117117

118-
import * as xmlDeclarationTests from './xml-declaration/xml-declaration-tests';
119-
allTests['XML-DECLARATION'] = xmlDeclarationTests;
118+
// import * as xmlDeclarationTests from './xml-declaration/xml-declaration-tests';
119+
// allTests['XML-DECLARATION'] = xmlDeclarationTests;
120120

121121
import * as dockLayoutTests from './ui/layouts/dock-layout-tests';
122122
allTests['DOCKLAYOUT'] = dockLayoutTests;
@@ -213,8 +213,8 @@ allTests['PROGRESS'] = progressTests;
213213
import * as placeholderTests from './ui/placeholder/placeholder-tests';
214214
allTests['PLACEHOLDER'] = placeholderTests;
215215

216-
import * as pageTests from './ui/page/page-tests';
217-
allTests['PAGE'] = pageTests;
216+
// import * as pageTests from './ui/page/page-tests';
217+
// allTests['PAGE'] = pageTests;
218218

219219
import * as listViewTests from './ui/list-view/list-view-tests';
220220
allTests['LISTVIEW'] = listViewTests;
@@ -237,8 +237,8 @@ allTests['DATE-PICKER'] = datePickerTests;
237237
import * as timePickerTests from './ui/time-picker/time-picker-tests';
238238
allTests['TIME-PICKER'] = timePickerTests;
239239

240-
import * as webViewTests from './ui/web-view/web-view-tests';
241-
allTests['WEB-VIEW'] = webViewTests;
240+
// import * as webViewTests from './ui/web-view/web-view-tests';
241+
// allTests['WEB-VIEW'] = webViewTests;
242242

243243
import * as htmlViewTests from './ui/html-view/html-view-tests';
244244
allTests['HTML-VIEW'] = htmlViewTests;
@@ -249,26 +249,26 @@ allTests['REPEATER'] = repeaterTests;
249249
import * as segmentedBarTests from './ui/segmented-bar/segmented-bar-tests';
250250
allTests['SEGMENTED-BAR'] = segmentedBarTests;
251251

252-
import * as animationTests from './ui/animation/animation-tests';
253-
allTests['ANIMATION'] = animationTests;
252+
// import * as animationTests from './ui/animation/animation-tests';
253+
// allTests['ANIMATION'] = animationTests;
254254

255255
import * as lifecycle from './ui/lifecycle/lifecycle-tests';
256256
allTests['LIFECYCLE'] = lifecycle;
257257

258-
import * as cssAnimationTests from './ui/animation/css-animation-tests';
259-
allTests['CSS-ANIMATION'] = cssAnimationTests;
258+
// import * as cssAnimationTests from './ui/animation/css-animation-tests';
259+
// allTests['CSS-ANIMATION'] = cssAnimationTests;
260260

261261
import * as transitionTests from './navigation/transition-tests';
262262
allTests['TRANSITIONS'] = transitionTests;
263263

264264
import * as searchBarTests from './ui/search-bar/search-bar-tests';
265265
allTests['SEARCH-BAR'] = searchBarTests;
266266

267-
import * as navigationTests from './navigation/navigation-tests';
268-
allTests['NAVIGATION'] = navigationTests;
267+
// import * as navigationTests from './navigation/navigation-tests';
268+
// allTests['NAVIGATION'] = navigationTests;
269269

270-
import * as livesyncTests from './livesync/livesync-tests';
271-
allTests['LIVESYNC'] = livesyncTests;
270+
// import * as livesyncTests from './livesync/livesync-tests';
271+
// allTests['LIVESYNC'] = livesyncTests;
272272

273273
import * as tabViewRootTests from './ui/tab-view/tab-view-root-tests';
274274
allTests['TAB-VIEW-ROOT'] = tabViewRootTests;

0 commit comments

Comments
 (0)