Releases: NativeScript/NativeScript
@nativescript/[email protected]
Bug Fixes
- webpack: exclude other platforms from require.context (#9686) (cb7bd2a), closes #9682
- webpack: xml-namespace-loader incorrect dependency mapping (#9780) (151d6e8)
Features
- allow better tree shaking (#9798) (d3674de)
- support webpack profiling (#9804) (af4b7e3)
- webpack: add support for .mjs files (#9747) (4fa51b6)
- webpack: allow watching node_modules (#9781) (9c9c831)
- webpack: read nativescript.config.ts main if set before fallback to package.json (#9769) (61ff7e4), closes #9658
@nativescript/[email protected]
@nativescript/[email protected]
Bug Fixes
- android: StringIndexOutOfBoundsException with invalid drawables (#9563) (8e76bbe)
- background parsing color #9559 (#9560) (3e21748)
- ios: ActionBar flat property using new appearance api for iOS 15 (#9558) (183b4d4)
- ios: TextView respect editable binding (#9589) (2b2ce37)
- ios: replace autofill string in textfield (#9555) (889f6d7)
- style: CSS variables should be case-sensitive. (#9603) (02aa0f6)
Features
@nativescript/[email protected]
@nativescript/[email protected]
@nativescript/[email protected]
@nativescript/[email protected]
Bug Fixes
- allow ignoring
reduce-css-calc
w/ webpack without error (#9510) (0fd92b7) - android: dont dispose fragment on onloaded (#8793) (03b7715)
- android: make less calls to native with getters around prop handling (#9119) (bca4d95)
- android: onSaveInstanceState should not crash when no rootView is set (#9447) (ee3c4c2)
- android: prevent potential crash when app goes to background (#9347) (47df889)
- android: use
nativeTextViewProtected
internally (#9483) (71b856c) - backgroundGradient fix with android BorderDrawable (41ce315)
- Color.darken fix (394209e)
- css colors not parsed correctly within background property (453ea18)
- include bundle-entry-points by default (ea0b3b0)
- ios: actionBar title to use appearance api on ios15+ (#9534) (4edeb19)
- ios: actionBar to use appearance api on ios13+ (#9530) (8e3f16d)
- ios: actionitem coloring with 15+ (7e35fdf)
- ios: prevent views from being measured if no native view (#9511) (56c50f2)
- ios: resiliency to frame controller viewDidDisappear (a5fd53b)
- modal: persist modal through configuration changes (#9533) (f3cd3d3)
- styling: change transform parameters parsing (#9481) (dbaab58), closes #5202
- webpack5: angular scss rule not ignoring regular scss (#9502) (093b369)
- webpack: add virtualEntry before main entry (5a3a35d), closes #9469
- webpack: use async type-checking in watch mode (5309f2d)
Features
- AbortController polyfill (#9333) (af281dd)
- android: support clipToBounds (#9508) (5890667)
- android: vector drawable support (#9464) (490f7dc)
- autofillType property for edit text base (#9478) (4964d31)
- color: added utilities and improved color parsing performance (#9110) (0ff2221)
- config: added option for ignoredNativeDependencies (4cad76c)
- core: make css parsers tree-shakable (#9496) (dce7408)
- Frame replacePage by entry (#9460) (4a5bec1), closes #9497
- handle config name (3bf55b7)
- image-source: add saveToFileAsync, toBase64StringAsync & resizeAsync (#9404) (36900d7)
- requestLayout performance improvements (#9122) (e4ce17e)
- types-android: API 31 (b5b46273b)
- types-ios: iOS 15 (cb8bf6f)
- webpack: -v and --version flags (7530ee4)
- webpack: export merge helper (53492ea)
- webpack: try resolving compiler, but don't fail if not found (ff4359a)
@nativescript/[email protected]: A new era!
This is a major release of @nativescript/webpack
that is now rebuilt from the ground up with ease of upgrading and customizing in mind.
Most new projects were already using the beta
version of @nativescript/webpack
so there's a good chance your project is already compatible.
The docs cover how the new configuration works: https://docs.nativescript.org/webpack.html
Upgrading from @nativescript/webpack beta/rc
If you are already using the beta
or rc
versions, update to 5.0.0
by changing the version in package.json
or using the following command:
npm i --save-dev @nativescript/webpack
Upgrading from @nativescript/webpack <5
To upgrade, delete your old webpack.config.js
(create a backup if you have done any customizations to it) and then install the latest 5.0.0 version:
npm i --save-dev @nativescript/webpack
Initialize a new config:
npx nativescript-webpack init
The new config should look something like this:
const webpack = require("@nativescript/webpack");
module.exports = (env) => {
webpack.init(env);
// Learn how to customize:
// https://docs.nativescript.org/webpack
return webpack.resolveConfig();
};
Next step is to re-add your customizations if any. Please refer to the docs for examples.
@nativescript/[email protected]
Bug Fixes
- ios: actionitem coloring with 15+ (bf89aa2)