All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.0.29 (2024-11-07)
- potential error while using
goBack
(33eebc8)
1.0.28 (2024-10-16)
- allow to extend
IntrinsicElements
(45978dd) - expose
AsComponent
for custom Template classes (c72688c) - expose ios / android components (wrapping #if ANDROID/IOS) (acc7289)
1.0.27 (2024-07-04)
- agnostic
resolveComponentElement
and typings to fit all cases (e642093) - call
initializeDom
in dom file because some users might not use top level index (baa0361) - use window.document in all cases (184475d)
1.0.26 (2024-07-02)
- missing exports (sorry for the 3 releases back to back ...) (8269bbd)
1.0.25 (2024-07-02)
- export navigation util methods like
resolveFrame
andresolveComponentElement
(019a835)
1.0.24 (2024-07-02)
- allow
backStackEntry
to be passed directly togoBack
(8e59028)
1.0.23 (2024-06-26)
- fix: dont crash on exit if no root page instance
- fix: prevent crash on
closeModal
if called without modal
- fix: transition error handling
- fix: transition fix
- chore: fix regression after last changes
- fix: completely ignore other platforms (ios: or android:)
- fix(android): allow custom transition on navigation back
- fix: dont catch and re throw on error or we loose original stack
- fix: support svelte class directive
- fix: correctly destroy root element on application exit
- feat: allow
let:index
inTemplate
- fix: dont rely on a custom
modalStack
anymore
- fix: error fix with bezier curves
- fix: broken typings
- fix: use
time
method and only set performance if necessary
- fixed
svelteNative
andsvelteNativeNoFrame
typings. Props parameter type is now inferred from component
- fixed jsx typings and add missing
layoutChanged
event
- fix global typings and made typings more generic to infer props from svelte component
- Fix elements properties change to null/undefined not being seen by N Views
- Updated type definitions used by language server to resolve issue with "on:tap" style events
- Updated definitions to include new properties from Nativescript core 8.1.3
- Fix showModal, not all controls have nativeView
- Fix typescript types for SvelteComponent and Template
- Fix detection of external renderer when being bundled by REPL
- change appendChild logic to match other Nativescript flavours
- Drop the "beta" suffix, see below betas for changes from 0.9
- revert prior fix and apply a proper fix.
- Fall back to global document when owner not provided to createElement()
- Fix bug introduced in beta.4 which prevented registration of events for items not derived from View
- Update supported svelte version
- Internal change which should allow self registration of components to reduce bundle size
- Update to Nativescript 8.1
- Resolve several problems preventing svelte 3.42.x from working with svelte native
- Resolve a problem preventing svelte-loader 3.x from working correctly with svelte native
- Change JSX types to use interfaces so they can be extended/augmented
- Added
shims.d.ts
to fix type errors reporting onbind:this
- Update JSX types based on latest 8.0.2 fixing some errors in the type definitions
- BREAKING: BottomNavigation and Tabs are gone, use
@nativescript-community/ui-material-tabs
and@nativescript-community/ui-material-bottom-navigation
as drop in replacements - BREAKING: Svelte Native is now case sensitive on attributes, this brings it in line with other frameworks on NativeScript. The types included should give nice autocomplete and hints in VSCode to help.
- Added RootLayout component
- Rebuild against NativeScript 8 (changes in NS8 here)
- Add JSX types for core widgets for better VSCode experience
- Fix typing for Template element (added $$prop_defs)
- Initialize Dom on package import so that svelte latches onto our populated global and window shims correctly
- Only include children that set the same property on parent when calculating index.
- Fix regression in attribute setter logic
- Test harness is working again
- Fixed regression for tabstrip item removal
- Resolved more property names
- Nativescript 7 support
- Resolve [Object object] in listview when using itemTemplateSelector
- Resolve Formatted string reactivity #166
- Prevent resolving of log messages when trace is not enabled
- Remove calls to deprecated "topmost()"
- Fix animations by overwriting NativeScripts slightly non-compliant requestAnimationFrame
- Fix slide animation
- Fix event bubbling with less monkey patching.
- Fix event bubbling #124
- Fix bug in segmented bar (re)creation closes #118 and #119
- Correctly handle multiple child text nodes
- Added ability to override nativescript tags with your own. Closes #105
- Swap to @nativescript/core from tns-core-modules. Closes #103
- Internal logger now skips evaluation of template strings when logging is disabled
- Upgrade to nativescript 6.4
- Upgrade to svelte 3.19.*
- provide timestamp to requestAnimationFrame shim,fixes transition problems with svelte 3.16+
- use most recent patch of svelte and tns-core-modules instead of most recent minor, this should help prevent breakages by upstream dependencies
- Require svelte 3.16.*
- Detect nativescripts own requestAnimationFrame polyfill and don't try to overwrite
- Fix Tabs component rendering on iOS
- Fix Tabs component on start page crashes app on iOS
- Support for Nativescript 6.2
- Clear history when frame direct child change causes a navigation, closes #96
- Restored custom TabStrip element implementation to work around problem with tabstripitem view creation
- Renamed NativeElementNode to NativeViewElementNode and added a parent class NativeElementNode which handles nativescript entities not derived from View
- Removed "meta" legacy onInsert and Remove hook container
- support for
prop:
directive to set the value of the containing node to the nativeView of the current node e.g<gridLayout prop:mainContent>
for sideDrawer - Added a parameter to NativeElementNode that configures the prop: behaviour and defines the correct casing of any property
- Added a parameter
setsParentProp
to NativeElementNode that specifies a property on the perent node to set to constructed element when inserted. - Added registerNativeViewElement and registerNativeConfigElement exports. These help change:
registerElement('myTag', () => new NativeViewElementNode('myTag', require('some-tns-plugin/mytag').MyTag))
into
registerNativeViewElement('myTag', () => require('some-tns-plugin/mytag').MyTag )
- Added
svelteNativeNoFrame
which allows you to launch your app without an implicit root frame. Great for when you are using RadSidebar
- Refactored property name normalization to cache based on object prototype so we aren't walking all defined properties every time we get or set.
- Use the new 'scoped styles' boolean parameter when calling addCss if we don't detect any :global() styles. This should improve perf.
- Add support for itemTemplateSelector closes #86
- Fix frame not found by Id #82
- Fix animations when using latest svelte
- Updated to NativeScript 6.1
- Support Tabs, TabStrip, and Bottom Navigation components
- Support sveltes new dev document.dispatch calls
- Update to svelte 3.12.1
- Update to svelte 3.7.1 and add workaround for sveltejs/svelte#3364
- Pin against svelte 3.6.1 to resolve #44 while waiting for sveltejs/svelte#3354
- Built against latest svelte 3.6.7 and Nativescript 6.0
- ListItem template components are now created with
intro: true
- mounting with anchor uses correct index during insert (fixes #30)
- class: directives now work with falsy values
- Bumped Nativescript to 5.4
- Bumped Svelte to 3.4
- Updated unit tests to use bundled svelte components instead of compiling as part of test.
- Removed console log spam and added to a NativeScript trace category exported as
DomTraceCategory
- Introduced a Changelog
- Bumped versions to use freshly released Svelte 3.0.0