1 | # Changelog
|
2 |
|
3 | ## 2.0.0-alpha.216
|
4 |
|
5 | Last version (with new features) before `beta.1`. This release contains breaking changes in the bundler that need to be tested thoroughly before beta.
|
6 |
|
7 | * Use the latest version of esbuild
|
8 |
|
9 | We are finally using the latest version of esbuild. All of our custom logic
|
10 | for hashing, resolving and chunking is now done by esbuild instead.
|
11 |
|
12 | * Support path aliases from `[js|ts]config.json`
|
13 |
|
14 | Now that we are using the latest version of esbuild we finally support [path aliases](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) declared in `[js|ts]config.json` files. This also works with assets, ie. declaring `"icons/*": ["assets/svg/*","assets/codicons/*]` in your tsconfig would allow `<svg src="icons/some-icon.svg">` to work anywhere in your project.
|
15 |
|
16 | * Remove support for path aliases in `imbaconfig.json`
|
17 |
|
18 | If you had declared path aliases in an `imbaconfig.json` these should be moved into a `[js|ts]config.json` instead.
|
19 |
|
20 | * Remove backwards compatible transforms from compiler itself.
|
21 |
|
22 | Previously we included a bunch of logic for transforming conditional assignments like `??=`,`&&=`, and `||=` to support older browsers and node versions. Now we compile these statements as is and rely on esbuild to transform when needed.
|
23 |
|
24 | * Remove support for `?=` operator - use `??=` instead.
|
25 |
|
26 | * Drop commonjs target from compiler
|
27 |
|
28 | The imba compiler will now always compile import/export statements natively
|
29 | to import/export in javascript, and instead rely on esbuild to convert the output to cjs when needed.
|
30 |
|
31 | * Simplify output from `imba build`
|
32 |
|
33 | The output of imba build is now possible to run directly through node (and soon Bun). We
|
34 |
|
35 | * Allow running html file directly with `imba some-entry.html`
|
36 |
|
37 | This will spawn a dev-server for this html file and its referenced scripts and stylesheets.
|
38 |
|
39 | * Allow testing client-side scripts with `imba --web some-entry.imba`
|
40 |
|
41 | This will spawn a dev-server, a html entrypoint and all that is needed to run a script in the browser.
|
42 |
|
43 | * Copy static assets over from `public` when building
|
44 |
|
45 | If you have a `public` directory in your project, files from this will be copied over to the public folder of your output dir (default `dist`) when building.
|
46 |
|
47 | * Allow prefixing asset paths via `--base` option
|
48 |
|
49 | Ie, when building for github pages you would run `imba build --base /my-repo-name -o docs index.html` to build your files and assets with the correct prefix, into the `docs/` folder of your project to adhere to github pages convetions.
|
50 |
|
51 | * Support loading workers following vite conventions
|
52 |
|
53 | ```
|
54 | import MyWorker from './some/script?worker'
|
55 | import MySharedWorker from './some/script?sharedworker'
|
56 | import url from './some/script?worker&url'
|
57 | ```
|
58 |
|
59 | * Set node14.13.0 as the default minimum target when building for node.
|
60 |
|
61 | This can be overridden by supplying your version of node through the `--node.target` option. Ie `imba build --node.target node12 my/script.imba`
|
62 |
|
63 | * Fixed regression in router that caused routed elements inside the root component to fail.
|
64 |
|
65 | ## 2.0.0-alpha.214
|
66 |
|
67 | * Treat routes ending with `/` as exact routes.
|
68 |
|
69 | The `<div route='/'>` would previously match any path. You could define exact routes by including a `$` at the end of the route. This lead to a lot
|
70 | of confusion. Now, any route that ends with a `/` will only match the exact path. Use `*` to bypass
|
71 |
|
72 | ```imba
|
73 | <div route='/'> # matches / _only_
|
74 | <div route='/*'> # matches any path
|
75 |
|
76 | <div route='/items'> # matches /items, /items/1 etc
|
77 | <div route='/items/'> # matches /items only
|
78 | ```
|
79 |
|
80 | * Only show first matching element if multiple siblings match a route.
|
81 |
|
82 | ```imba
|
83 | <div>
|
84 | <div route='/items/new'>
|
85 | <div route='/items/:id'> # if /items/new matched - this will not show
|
86 | <div route='/'> # matches if url is exactly '/'
|
87 | <div route='*'> # matches if none of the above matches
|
88 | ```
|
89 |
|
90 | ## 2.0.0-alpha.213
|
91 |
|
92 | * Make `@event.emit('...')` on `<global/teleport>` dispath event inside their literal parent (fixes #693)
|
93 |
|
94 | ## 2.0.0-alpha.210
|
95 |
|
96 | * Add number units for `minutes`, `hours`, and `days`
|
97 |
|
98 | * Fixed issue where identical nested selectors were incorrectly optimized away
|
99 |
|
100 | * Support `silent: true` option for `imba.autorun` to not call imba.commit
|
101 |
|
102 | * Fixed issue where @autorun methods threw error when element was re-mounted (#684)
|
103 |
|
104 | ## 2.0.0-alpha.209
|
105 |
|
106 | * Fixed bug with observables not unsubscribing correctly in certain cases
|
107 |
|
108 | * Expose `imba.reportObserved`, `imba.reportChanged` and `imba.createAtom` (still experimental)
|
109 |
|
110 | * Add `imba.hotkeys.addKeycodes(...)` (#677)
|
111 |
|
112 | * Made `@touch.hold(dur)=handler` trigger handler after duration without waiting for additioanl events (#664)
|
113 |
|
114 | ## 2.0.0-alpha.207
|
115 |
|
116 | * Don't try to implicitly return debugger statement
|
117 |
|
118 | * Improve compilation of `extend` statements for tooling
|
119 |
|
120 | ## 2.0.0-alpha.206
|
121 |
|
122 | * Disallow iterating over falsy values using `for in`
|
123 |
|
124 | * Compile literal bigints correctly
|
125 |
|
126 | * Minor improvements to type definitions
|
127 |
|
128 | ## 2.0.0-alpha.205
|
129 |
|
130 | * Support `for await ... of` syntax
|
131 |
|
132 | * Support tagged templates
|
133 |
|
134 | Works like in plain js, but `{}` is still used for interpolation instead of `${}`.
|
135 |
|
136 | ```imba
|
137 | import md from 'tag-markdown'
|
138 | const html = md`## Welcome to {name}`
|
139 | ```
|
140 |
|
141 | * Add internal `#__patch__(props)` method for class instances to update fields
|
142 |
|
143 | * Stop shimming top-level await (delegates responsibility to esbuild)
|
144 |
|
145 |
|
146 | ## 2.0.0-alpha.204
|
147 |
|
148 | * Fixed operator precedence for ternary expressions
|
149 |
|
150 | * Revert automatic `calc` wrapping for css values introduced in alpha 200
|
151 |
|
152 | Introduced a lot of bugs and challenges related to `/` being a valid part of css values. `calc` will still be automatically be added around top-level parenthesis in css values, so `width:(100vw - 20px)` will still compile as `calc(100vw - 20px)`, but properties like `grid-column: 1 / 3` will now compile without calc again.
|
153 |
|
154 | ## 2.0.0-alpha.203
|
155 |
|
156 | * Fixed regression with negated breakpoint modifiers like `display@!600:none`
|
157 |
|
158 | ## 2.0.0-alpha.202
|
159 |
|
160 | * Fixed performance regression for tag trees introduced in alpha 191
|
161 |
|
162 | * Fixed compilation of css properties wrapped in parenthesis
|
163 |
|
164 | * Make unresolved decorators resolve to `imba.@decorator`
|
165 |
|
166 | ```imba
|
167 | class Order
|
168 | @lazy get lines
|
169 | ...
|
170 | ```
|
171 |
|
172 | If `@lazy` is not found in the file above, the compiler will essentially include
|
173 | `import {@lazy} from 'imba` when compiling.
|
174 |
|
175 | * Introduced experimental state management decorators
|
176 |
|
177 | A minimal set of decorators heavily inspired by MobX that allows you to mark classes
|
178 | and objects as observable, and run code upon changes. This feature will be kept under
|
179 | wraps until it has been battle-tested.
|
180 |
|
181 | ## 2.0.0-alpha.201
|
182 |
|
183 | * Fixed regression where css colors `rgb(0 0 0 / alpha)` would compile incorrectly
|
184 |
|
185 | ## 2.0.0-alpha.200
|
186 |
|
187 | * Allow `@hotkey('*')` to listen to all hotkey events
|
188 |
|
189 | This is perfect for disabling all other hotkeys in certain contexts.
|
190 |
|
191 | ```imba
|
192 | tag ConfirmDialog
|
193 | # when this dialog is mounted - all hotkey handlers preceding
|
194 | # it in the dom tree will be blocked by the `*` listener
|
195 | <self @hotkey('*').global>
|
196 | <button @hotkey('esc')> "Cancel"
|
197 | <button @hotkey('enter')> "Ok"
|
198 | ```
|
199 |
|
200 | * Automatically wrap style expressions in `calc()`
|
201 |
|
202 | ```imba
|
203 | css div width: calc(100vw - 40px)
|
204 | # can now be written as
|
205 | css div width: 100vw - 40px
|
206 | ```
|
207 |
|
208 | * Make bind=data.property work for textarea when value is `undefined`
|
209 |
|
210 | * Allow nested parentheticals in css calc
|
211 |
|
212 | * Fixed issue where removing class names using `el.flags.remove` would not work
|
213 |
|
214 | * Made `@touch.flag` support selector in second argument to match `@event.flag`
|
215 |
|
216 | * Allow second argument to `el.flags.incr(flag, dur = 0)`
|
217 |
|
218 | With this argument you can automatically decrement the flag after a certain duration.
|
219 |
|
220 | * Allow negated style modifiers
|
221 |
|
222 | ```imba
|
223 | css div
|
224 | @!hover o:0.5 # div:not(:hover) { opacity: 0.5 }
|
225 | @!md d:none # @media (max-width: 767px) { div { display:none } }
|
226 | # also works for classes
|
227 | css div
|
228 | @.!disabled o:0.5 # div:not(.disabled){ opacity:0.5 }
|
229 | ```
|
230 |
|
231 | ## 2.0.0-alpha.199
|
232 |
|
233 | * Fix regression where content of `<teleport>` and `<global>` was not rendered (#643)
|
234 |
|
235 | ## 2.0.0-alpha.198
|
236 |
|
237 | * Change how css specificity is forced in generated selectors
|
238 |
|
239 | Older browsers do not support complex selectors within `:not()`, so the style `:not(#_#_#_)` which is used for "inline" styles would not work in these browsers. We have now reverted to using multiple not selectors like `:not(#_):not(#_):not(#_)`. This is more verbose but the size is negligible, especially with compression. Debugging styles in the browser is a bit more clumsy.
|
240 |
|
241 | * Change css specificity for component rules
|
242 |
|
243 | Selectors inside tag declarations are now compiled with a higher specificity than global selectors.
|
244 |
|
245 | ```imba
|
246 | tag App
|
247 | # scoped selectors have higher precedence than global styles
|
248 | css .selector d:block
|
249 | ```
|
250 |
|
251 | * Fixed case where a generated class-name is added multiple times on elements
|
252 |
|
253 | ## 2.0.0-alpha.197
|
254 |
|
255 | * Fixed issue with bracketless multiline object and certain operators
|
256 |
|
257 | ```imba
|
258 | let x = null
|
259 | x ||=
|
260 | one: 1
|
261 | two: 2
|
262 | # would previously compile incorrectly to x ||= {one: 1}
|
263 | ```
|
264 |
|
265 | ## 2.0.0-alpha.196
|
266 |
|
267 | * Introduced `@event.closest(sel)` modifier
|
268 |
|
269 | Works like `@event.sel(selector)`, but checks for `target.closest(...)` instead of `target.matches(...)`.
|
270 | In the cases where you want to just handle clicks that do _not_ match a selector you can negate the modifier using `.!closest(...)`.
|
271 |
|
272 | ```imba
|
273 | tag App
|
274 | <self>
|
275 | # all clicks outside of button tags
|
276 | <div @click.!closest('button')>
|
277 | <button> <span> "Click"
|
278 | <p> "blabla"
|
279 | ```
|
280 |
|
281 | ## 2.0.0-alpha.195
|
282 |
|
283 | * Fixed compilation issue for functional tags without arguments
|
284 |
|
285 | * Throw error when trying to use bind on functional tags
|
286 |
|
287 | ## 2.0.0-alpha.194
|
288 |
|
289 | * Improved syntax for functional tags
|
290 |
|
291 | If you supply `()` after a tag name, Imba will now treat it as a functional tag. Ie, `<some-name(1,2)>` is equal to `<( some-name(1,2) )>`. The old syntax may be phased out before final release.
|
292 |
|
293 | ```imba
|
294 | def List items
|
295 | return if items.length == 0
|
296 |
|
297 | <section>
|
298 | <slot>
|
299 | <ul> for item in items
|
300 | <li> item.title
|
301 |
|
302 | tag App
|
303 | def head
|
304 | <header> <slot> <h2> "Welcome"
|
305 |
|
306 | <self>
|
307 | <head()>
|
308 | <List(data.newest)> <h2> "Newest posts"
|
309 | <List(data.all).large> <h2> "All posts"
|
310 | ```
|
311 |
|
312 | ## 2.0.0-alpha.193
|
313 |
|
314 | * Fix issue where parts of runtime was incorrectly tree-shaked
|
315 |
|
316 | * Always resolve `node:*` imports as external
|
317 |
|
318 | * Include changelog.md in npm package
|
319 |
|
320 | ## 2.0.0-alpha.191
|
321 |
|
322 | There will likely be a few more alpha releases fixing regressions and issues related to the new features in alpha 191, but after these potential issues have been resolved we're moving to beta 🥳! This release does contain a few breaking changes, both in relation to styles and memoization. We'll update the docs at imba.io and publish a screencast going over the changes to make it easier to transition to this new version. Changes;
|
323 |
|
324 | * Rename $key to key
|
325 |
|
326 | To give elements a stable identity (usually inside lists) you should now use `<el key=value>` instead of `<el $key=value>`. `$key` is deprecated and will be removed in `beta.1`.
|
327 |
|
328 | * Allow using any object as `<element key=...>` value
|
329 |
|
330 | Keyed elements now use a `Map` instead of a plain object to keep track of unique elements. This means that any value (both objects and primitive values) may be used as keys.
|
331 |
|
332 | ```imba
|
333 | const items = [{title: "One"},{title: "Two"}]
|
334 |
|
335 | tag App
|
336 | <self> for item in items
|
337 | # objects themselves can be used as keys now
|
338 | <AppItem key=item data=item>
|
339 | ```
|
340 |
|
341 | * New (improved) syntax for rendering functional components / tag trees
|
342 |
|
343 | This was the main change holding us back from reaching beta, as it is a breaking change for most users. When you want to include external live dom elements from getters or methods outside of the render-tree, wrap the expression in `<(expression)>`.
|
344 |
|
345 | Besides simplifying the way memoization works it also allows you to add classes and styles to these external fragments, making it vastly more flexible than before.
|
346 |
|
347 | ```imba
|
348 | tag App
|
349 | get body
|
350 | <div> "This is body"
|
351 |
|
352 | def list title, items
|
353 | <section>
|
354 | <h2> title
|
355 | <ul> for item in items
|
356 | <li> item.title
|
357 |
|
358 | <self>
|
359 | <( body )>
|
360 | <( list 'Top', data.popular ).large [mt:2]>
|
361 | <( list 'New', data.posts.slice(0,10) )>
|
362 | ```
|
363 |
|
364 | * Log warnings to console when building/running without minification
|
365 |
|
366 | Added runtime checks that notify about erroneous behaviour when building/running w/o minification. Initially it will only warn about non-memoized elements being created during rendering. Eventually we'll use these conventions to add much more elobrate checks and readable error messages for the most common issues users can run into.
|
367 |
|
368 | * Allow instantiating elements w/o memoization using `new`
|
369 |
|
370 | Imba will automagically allow any element (literal tag) in any method to be memoized.
|
371 |
|
372 | ```imba
|
373 | def wrap text
|
374 | let div = <div.item> text
|
375 | return div
|
376 |
|
377 | imba.mount do <section>
|
378 | <( wrap "One" )>
|
379 | <( wrap "Two" )>
|
380 | ```
|
381 |
|
382 | If you call a method or access a getter that returns an element (like `def wrap`) it will look up a memoization context and just reuse/update the div for that particular context. If you call it directly without being in a context, Imba will warn you. There are however some situations where you actually just want to create new elements. In this case, use `new` in front of the element. If the root is not memoized, the children won't either, so you only need to add `new` in front of the top element.
|
383 |
|
384 | ```imba
|
385 | def wrap text
|
386 | let div = new <div.item> text
|
387 | return div
|
388 | ```
|
389 |
|
390 | * Allow non-global tag types in dynamic tag names
|
391 |
|
392 | Local tag types are now allowed in `<{tag-type} ...>` syntax. Previously it would only work when `tag-type` evaluated to a string, and there was a globally defined web component or native tag with that name. Now it works with classes as well.
|
393 |
|
394 | ```imba
|
395 | import {PostView,ArticleView} from './views'
|
396 |
|
397 | const items = [
|
398 | { type: Post, title: "My post"}
|
399 | { type: Article, title: "My article"}
|
400 | ]
|
401 |
|
402 | tag App
|
403 | <self>
|
404 | for item in items
|
405 | <{item.type} data=item>
|
406 | ```
|
407 |
|
408 | * Only allow named elements inside `<self>`
|
409 |
|
410 | Using named elements (`<div$myname>`) outside of self would previously introduce subtle bugs and conflicts. They are now only allowed inside of `<self>`.
|
411 |
|
412 | * Changed css specificity
|
413 |
|
414 | Styles declared in tag declaration body now has lower specificity than class selectors.
|
415 |
|
416 | ```imba
|
417 | css .warn hue:red
|
418 | css .large p:4 fs:lg
|
419 |
|
420 | tag Button
|
421 | css p:2 fs:sm hue:blue
|
422 |
|
423 | # styles from classes take precedence
|
424 | <Button.warn.large>
|
425 | ```
|
426 |
|
427 | * Scoped selectors no longer applies to self
|
428 |
|
429 | Now, selectors like `.warn` declared in tag declaration body only applies to elements _inside_ `Button`, not the button itself. To target the button itself, use `&` in the selector.
|
430 |
|
431 | ```imba
|
432 | tag Button
|
433 | css bg:blue2
|
434 | css .warn bg:red2
|
435 | css &.large fs:lg
|
436 |
|
437 | <self.warn.large> "Still blue bg - but large"
|
438 | ```
|
439 |
|
440 | * Add `declare` keyword for declaring fields (with type annotations) without generating any code for that field
|
441 |
|
442 | ```imba
|
443 | class Foo
|
444 | declare a\number
|
445 | ```
|
446 |
|
447 | * Allow multiline conditionals when lines start with `and`,`or`,`||`, or `&&`
|
448 |
|
449 | This is a temporary solution for a larger challenge. It simply ignores new-lines whenever your line starts with these operators.
|
450 |
|
451 | ```imba
|
452 | if condition
|
453 | and test
|
454 | or force
|
455 | return ...
|
456 | ```
|
457 |
|
458 | * Allow third argument in `for in` loops referencing length
|
459 |
|
460 | If you need to know the length of a collection you are iterating over, you can now access the total length of the collection by supplying a third argument. This is not available in `for of`, only `for in`.
|
461 |
|
462 | ```imba
|
463 | for member,index,len in list
|
464 | # len refers to the length of the iterable list
|
465 | if index == len - 1
|
466 | yes # this is the last element
|
467 | ```
|
468 |
|
469 | * Exposed `imba.hotkeys.humanize` for converting hotkey combos to readable shortcuts
|
470 |
|
471 | * Exposed `imba.hotkeys.htmlify` for converting hotkey combos to readable shortcuts as html
|
472 |
|
473 |
|
474 | ## 2.0.0-alpha.190
|
475 |
|
476 | * Fixed regression related to implicit parenthesis in tag trees
|
477 |
|
478 | * Renamed `@hotkey.capture` to `@hotkey.force`
|
479 |
|
480 | ## 2.0.0-alpha.189
|
481 |
|
482 | * Introduced `@hotkey.repeat` modifier
|
483 |
|
484 | When a user presses a key and then keeps holding it, keydown/keypress
|
485 | events will be generated every n milliseconds. For hotkeys you usually
|
486 | only want to trigger once when the user press the combination.
|
487 |
|
488 | If you want the handler to keep firing while user holds down the keys
|
489 | you can now use the `.repeat` modifier:
|
490 |
|
491 | ```imba
|
492 | # will only toggle when pressing space, no matter how long you
|
493 | # keep it pressed.
|
494 | <div @hotkey('space')=togglePlayback>
|
495 | # holding the right arrow will call fastForward repeatedly
|
496 | <div @hotkey('right').repeat=fastForward>
|
497 | ```
|
498 |
|
499 | * Changed rules for implicit parenthes / calling in tag trees
|
500 |
|
501 | Indented code under a tag-tree will no longer be compiled as an invocation.
|
502 |
|
503 | ```imba
|
504 | <div> data.name
|
505 | "something"
|
506 | if data.name
|
507 | "something"
|
508 | ```
|
509 |
|
510 | The code above would previously compile to div `data.name("something")`. Now
|
511 | indentation in tag trees will behave like they do in statements like if/for/while etc.
|
512 | This fixes #630, so you can now add css blocks like this:
|
513 |
|
514 | ```imba
|
515 | <div> data.name
|
516 | css d:block # style for the div
|
517 | ```
|
518 |
|
519 | * Added `@first-child` and `@last-child` css modifiers
|
520 |
|
521 | We already have `@first` and `@last` as shorter aliases, but since all other standard pseudo-selectors exist it makes sense to include the longer versions of these as well.
|
522 |
|
523 | * Fixed issue with nested loops in tag trees
|
524 |
|
525 | It is now possible to use nested loops without wrapping the inner loops in a fragment.
|
526 |
|
527 | ```imba
|
528 | <div>
|
529 | for item in data.items
|
530 | for label in item.labels
|
531 | <div> label
|
532 | ```
|
533 |
|
534 | * Allow declaring variables and global tags with the same name
|
535 |
|
536 | Global web components should not be registered as regular variables.
|
537 | Previously the compiler would throw an error if `tag app` and `let app = ...`
|
538 | were declared in the same file.
|
539 |
|
540 | * Allow optional chaining with dynamic keys - #638
|
541 |
|
542 | ```imba
|
543 | user..[key]
|
544 | ```
|
545 |
|
546 | * Mark imported SVGs as @__PURE__
|
547 |
|
548 | This allows efficient tree-shaking so that one can include all icons from a collection
|
549 | and only bundle the ones that are used.
|
550 |
|
551 | ```imba
|
552 | import * as icons from 'imba-codicons'
|
553 |
|
554 | <svg src=icons.volume-up>
|
555 | # you get completions and previews for all icons, but only volume-up
|
556 | # will be bundled in your code now
|
557 | ```
|
558 |
|
559 | * Don't round x,y in `@touch.reframe` and `@touch.fit` by default (#639)
|
560 |
|
561 | ## 2.0.0-alpha.187
|
562 |
|
563 | * Call `dehydrate` on compononents when rendering components from the server.
|
564 |
|
565 | * Updated type declarations.
|
566 |
|
567 | ## 2.0.0-alpha.186
|
568 |
|
569 | * Don't add html class name for named elements
|
570 |
|
571 | Previously when naming an element like `<div$title> ...`, imba would automatically
|
572 | add a `title` class name to the element. This can lead to confusing issues. If you
|
573 | have used this undocumented behaviour previously you just need to add the class
|
574 | yourself, like `<div$title.title>`.
|
575 |
|
576 | * Introduced `@mouse.mod` modifier
|
577 |
|
578 | Since Mac and Windows/Linux use different keyboard modifiers for most standard actions
|
579 | (ctrl+c,ctrl+s,ctrl+click) vs (⌘c,⌘s,⌘+click) etc, it makes sense to have an event
|
580 | modifier that takes care of checking the platform. `@mouse.mod` will return true of
|
581 | ⌘ is pressed on mac, and Ctrl is pressed on all other platforms.
|
582 |
|
583 | ```imba
|
584 | <div @click.mod.stop=openInNewWindow @click=openHere>
|
585 | ```
|
586 |
|
587 | * Fixed bug in `@event.throttle` modifier
|
588 |
|
589 | ## 2.0.0-alpha.183
|
590 |
|
591 | - Remove unneeded class names on tags when building
|
592 |
|
593 | ## 2.0.0-alpha.182
|
594 |
|
595 | - Fixed issues with using event modifiers with external imba library
|
596 |
|
597 | ## 2.0.0-alpha.177
|
598 |
|
599 | - Added type declarations into typings/
|
600 |
|
601 | ## 2.0.0-alpha.176
|
602 |
|
603 | - Deprecated `@touch.moved-dir`
|
604 |
|
605 | The direction of the `@touch.moved` modifier can now be specified in the second argument of `@touch.moved` instead of as 6 separate modifiers. These are not used that often and it seems natural to keep inside a single modifier instead.
|
606 |
|
607 | ```imba
|
608 | <div @touch.moved-left(4px)> # before
|
609 | <div @touch.moved(4px,'left')> # after
|
610 | ```
|
611 |
|
612 | - Renamed style property `tint` to `hue`
|
613 |
|
614 | Hue is a better name for the newly introduced `tint` style property.
|
615 |
|
616 | ```imba
|
617 | # hue can be set to any named color from the imba color palette
|
618 | <div[hue:orange]>
|
619 | <h1[color:hue7]> # refer to a shade/tint of the aliased color
|
620 | ```
|
621 |
|
622 | - Refactored event modifiers
|
623 |
|
624 | Foundations to allow defining custom event modifiers down the road. Complex modifiers have access to the context in which it was called, including a state-object that is persisted across events etc. Documentation fo this will be in place before 2.0 final. As an example, a tiny `@keydown.f1` modifier for only passing through F1 can be defined like this:
|
625 |
|
626 | ```imba
|
627 | extend class KeyboardEvent
|
628 |
|
629 | def @f1
|
630 | return keyCode == 112
|
631 | ```
|
632 |
|
633 | - Changed behavior of `@event.throttle` modifier
|
634 |
|
635 | `throttle` would previously fire once and suppress subsequent events for a certain duration (default 250ms). Now it will re-fire at the end of the throttling if there were any suppressed events during the initial throttle. For events like `@resize` and `@scroll` where you just want to limit how often they fire, the new behavior is much more useful.
|
636 |
|
637 | ```imba
|
638 | # handler will be called immediately upon scrolling and keep emitting
|
639 | # every 100ms until there are no more scroll events.
|
640 | <div @scroll.throttle(100ms)=handler>
|
641 |
|
642 | # So, clicking this button twice will trigger once immediately,
|
643 | # and then again after 1 second. Previously the second click would
|
644 | # never trigger.
|
645 | <div @click.throttle(1s)=handler>
|
646 | ```
|
647 |
|
648 | - Introduced `@event.cooldown` modifier
|
649 |
|
650 | The old `throttle` was renamed to `cooldown`. Ie, if you want subsequent button clicks to be suppressed for `n` time (250ms default) you should now use `cooldown` instead of `throttle`.
|
651 |
|
652 | ```imba
|
653 | # So, clicking this button twice will trigger once immediately, and
|
654 | # the next click will be ignored as long as it happens less than a second later
|
655 | <div @click.cooldown(1s)=handler>
|
656 | ```
|
657 |
|
658 | - Allow negated event modifiers
|
659 |
|
660 | Certain event modifiers are called guards, like `@keydown.enter`, `@click.self` etc. These are modifiers that essentially evaluate to true/false and decides whether to continue handling an event or not. `@click.self` would only trigger if the target of the event is the same as the element to which the `@click` is bound. Now you can include a `!` in front of any such event handler to only continue if the guard is false.
|
661 |
|
662 | Ie. `<div @click.!shift=...>` would only trigger if shiftKey is _not_ pressed.
|
663 |
|
664 | ```imba
|
665 | # Only call handler if shiftKey is NOT pressed
|
666 | <div @click.!shift=handler>
|
667 |
|
668 | # Only call handler if target does NOT match the selector
|
669 | <div @click.!sel('.active')=handler>
|
670 | ```
|
671 |
|
672 | - Introduced `@mouse.left`, `@mouse.middle`, and `@mouse.right` modifiers
|
673 |
|
674 | Only trigger if the left,middle, or right mouse button is pressed. Works for all mouse and pointer events, as well as the custom `@touch` event.
|
675 |
|
676 | ```imba
|
677 | # Only call handler if the middle mouse button was pressed
|
678 | <div @click.middle=handler>
|
679 |
|
680 | # Only start touch handling if the right mouse button was pressed
|
681 | <div @touch.right=handler>
|
682 | ```
|
683 |
|
684 | - Introduced `@intersect.flag` modifier
|
685 |
|
686 | The `flag` modifier now works differently for `@intersect` event. It will add a css class to the element when it is intersecting and remove it whenever it is not intersecting.
|
687 |
|
688 | ```imba
|
689 | # the html class showing will be present on div
|
690 | # whenever it is intersecting with the viewport
|
691 | <div @intersect.flag('showing')>
|
692 | ```
|
693 |
|
694 | - Introduced `@touch.end` modifier
|
695 |
|
696 | The `end` guard breaks unless the touch is in its ending state.
|
697 |
|
698 | ```imba
|
699 | # handler is only called at the end of the touch
|
700 | <div @touch.end=handler>
|
701 | # handler is only called at the end of the touch if pointer moved
|
702 | <div @touch.moved.end=handler>
|
703 | ```
|
704 |
|
705 | - Introduced `@touch.hold(dur=1000ms)` modifier
|
706 |
|
707 | The `hold` modifier allows you to require an element to be pressed for some time (default 1000ms) until it starts allow events to come through.
|
708 |
|
709 | ```imba
|
710 | # handler is only called once the touch has been held for 1000ms
|
711 | <div @touch.hold=handler>
|
712 | # handler only called if ctrl was pressed and touch held for 250ms
|
713 | <div @touch.ctrl.hold(250ms)=handler>
|
714 | ```
|
715 |
|
716 |
|
717 | - Introduced `@touch.apply(target,xprop='x',yprop='y')` modifier
|
718 |
|
719 | Like `@touch.sync` but just setting the x,y values on an object directly instead of adding to the previous values.
|
720 |
|
721 | ```imba
|
722 | const obj = {}
|
723 | # apply is essentially shorthand for setting properties:
|
724 | <div @touch.apply(obj)>
|
725 | <div @touch=(obj.x = e.x, obj.y = e.y)>
|
726 | ```
|
727 |
|
728 |
|
729 | - Added `@event.key(keyOrCode)` modifier for keyboard events
|
730 |
|
731 | KeyboardEvent.keyCode is deprecated but still useful in many cases. If you supply a number to the modifier it will stop handling if `keyCode` does not match this number.
|
732 |
|
733 | ```imba
|
734 | # Only trigger if F1 is pressed (event.keyCode==112)
|
735 | <div @keydown.key(112)=handler>
|
736 | ```
|
737 |
|
738 | If you supply a string it will compare it against KeyboardEvent.key.
|
739 |
|
740 | ```imba
|
741 | # Only trigger if PrintScreen is pressed (event.key=='PrintScreen')
|
742 | <div @keydown.key('PrintScreen')=handler>
|
743 | ```
|
744 |
|
745 | - Changed behavior of `@touch.moved` modifier
|
746 |
|
747 | Now, if you add a `moved-left(threshold = 4px)` modifier, the event handling will be cancelled if the touch has moved more in any other direction (in this case up,down, or right) _before_ moving 4px left.
|
748 |
|
749 | ```imba
|
750 | # If user moves more than 10px up/down before left/right
|
751 | # the touch will not be handled
|
752 | <div @touch.moved-x(10px)=draghandle>
|
753 | ```
|
754 |
|
755 | - Improved behaviour of `@touch` and `@click` events
|
756 |
|
757 | `@click` events on nested children of an element with a `@touch` handler would previously be prevented. This made `@touch` pretty challenging to use for things like dragging elements with buttons etc.
|
758 |
|
759 | Now `@click` events will be triggered unless the `@touch` handler has a `prevent` modifier, a `moved(-x|y|up|down)` modifier that has activated, or a `hold` modifier that has activated.
|
760 |
|
761 | ```imba
|
762 | # button click is triggered onless touch is held more than 500ms
|
763 | <li @touch.hold(500ms)=draghandle> <button @click=handle>
|
764 | ```
|
765 |
|
766 | - Improved behaviour of `@touch` and scrolling on touch devices
|
767 | Previously, scrolling (and clicking) would be disabled for any element with a `@touch` handler on iOS. Ie. if you added `@touch` to a custom slider, scrolling would not work if the user happened to touch down on the slider while flicking down the page.
|
768 |
|
769 | Scrolling is disabled by the `prevent` modifier, an activated `moved` modifier or activated `hold` modifier.
|
770 |
|
771 | ```imba
|
772 | # Scrolling will now work fine when touching the div and flicking up/down.
|
773 | # Only if the user holds still on the element for 500ms will scrolling and
|
774 | # default behavior be prevented.
|
775 | <div @touch.hold(500ms)=draghandler>
|
776 | ```
|
777 |
|
778 | - Add support for additional file extensions in bundler (webm, weba, avi, mp3, mp4, m4a, mpeg, wav, ogg, ogv, oga, opus, bmp)
|
779 |
|
780 | ## 2.0.0-alpha.175
|
781 | - Fix: `@in` transitions for nested elements works
|
782 | - Experimental support for tweening from/to implicit width/height in transitions
|
783 | - Experimental `@resize.css` modifier to automatically enable size units
|
784 | - Allow variables in color opacity like `color:blue4/$alpha`
|
785 | - Experimental support for `tint:colorname` and using `tint0-9` colors in styles
|
786 |
|
787 | ## 2.0.0-alpha.174
|
788 | - Named elements (`<div$myname>`) exist immediately in components
|
789 | - Fix: Spread operator works for any expression in objects
|
790 | - Fix: Make sure ::before/after comes last in selectors with other pseudo-classes>
|
791 | - Fix: Allow symbol keys in `prop/attr #my-sym-key`
|
792 |
|
793 | ## 2.0.0-alpha.173
|
794 |
|
795 | - Fix: Allow binding tag properties to symbol identifiers
|
796 | - Report correct location for "Cannot redeclare variable" error (#114)
|
797 | - Experimental support for `@hotkey` events
|
798 | - Fix: Don't run `imba.commit` on unhandled events>
|
799 | - Added `@trusted` event guard
|
800 | - Added `@trap` event modifier
|
801 |
|
802 | ## 2.0.0-alpha.172
|
803 |
|
804 | - Fix: Rendering list inside conditional
|
805 | - Support css blocks inside conditionals in tag trees
|
806 | - Warn about interpolated style values outside of tag trees
|
807 | - Improved specificity for nested css rules
|
808 |
|
809 | ## 2.0.0-alpha.171
|
810 |
|
811 | - Fix: Make `<global @resize>` work correctly
|
812 | - Fix: Variable resolution for `let item = do ... item()`
|
813 | - Fix: Allow ternary in tag trees
|
814 | - Fix: Allow `condition && <tag>` in tag trees
|
815 | - Fix: Ternary parsing `cond ? <div> "a" : "b"`
|
816 |
|
817 | ## 2.0.0-alpha.170
|
818 |
|
819 | - Added `@in` style modifier for specifying in-only transitions
|
820 | - Renamed transition hooks to `transition-(in|out)-(end|cancel)`
|
821 | - Using `<button bind=prop>` without a value acts like `<button bind=prop value=yes>`
|
822 |
|
823 | ## 2.0.0-alpha.169
|
824 |
|
825 | - Fix: Various dom regressions in SSR
|
826 | - Updated default ease duration to 300ms
|
827 |
|
828 | ## 2.0.0-alpha.168
|
829 |
|
830 | - Use setAttribute('class') under the hood for svg elements
|
831 | - Added `#afterVisit`, `#beforeReconcile`, `#afterReconcile` hooks
|
832 | - Added experimental easing via `<my-element ease>`, with element hooks
|
833 | `#ease-enter`, `#ease-entered`, `#ease-enter-cancel`, and
|
834 | `#ease-exit`, `#ease-exited`, `#ease-exit-cancel`
|
835 | - Added `ease/e`,`ease-opacity/eo`,`ease-transform/et` and `ease-colors/ec`
|
836 | style properties for experimental easing feature
|
837 | - Fix: Passing slots into child components (#607)
|
838 | - Allow using setters on `#context`
|
839 |
|
840 | ## 2.0.0-alpha.167
|
841 |
|
842 | - Add support for generic media selectors via `@media(some-media) ...`
|
843 | - Fix: Interpolated numeric value for `rotate:{val}` works i FF
|
844 | - Add @all and @speech style modifiers (for @media all/speech)
|
845 | - Fix: Allow empty css selectors
|
846 | - Fix: Rebuilt prebuilt imba.mjs for web
|
847 |
|
848 | ## 2.0.0-alpha.166
|
849 |
|
850 | - Add experimental support for class decorators
|
851 | - Fix: Apply display:block to global tags without dashed name
|
852 | - Change: `inset:*` style shorthand sets `position:absolute`
|
853 | - Added `<teleport to=(sel/element)>` component (#606) by @haikyuu
|
854 |
|
855 | ## 2.0.0-alpha.165
|
856 |
|
857 | - Reorganize prebuilt files for jspm support
|
858 |
|
859 | ## 2.0.0-alpha.157
|
860 |
|
861 | - Add jspm configuration in package.json
|
862 |
|
863 | ## 2.0.0-alpha.156
|
864 |
|
865 | - Add #**inited** hook for class instance initialization
|
866 | - All custom components defaults to display:block
|
867 | - Fix: Don't inject hmr.js script into html assets when building
|
868 | - Fix: Generate html files in public directory
|
869 |
|
870 | ## 2.0.0-alpha.155
|
871 |
|
872 | - Allow `$envvar$` as first argument of implicit calls (#571)
|
873 | - Allow `super` in `extend class/tag`
|
874 | - Add experimental support for `extend someObject`
|
875 | - Variable / parameter named `self` used for implicit self in scope
|
876 | - Throw error for non-self tags in tag declaration body
|
877 | - Allow accessing array elements from end with literal numbers like `array[-1]`
|
878 |
|
879 | ## 2.0.0-alpha.154
|
880 |
|
881 | - Include precompiled browser-version of library to make it work with jspm
|
882 | - Fix issue with html parser
|
883 | - Fix issue with `<input value=...>` not working in certain cases
|
884 | - Add optional static file serving for `imba serve`
|
885 |
|
886 | ## 2.0.0-alpha.153
|
887 |
|
888 | - Fix issue with prop watchers not compiling correctly
|
889 |
|
890 | ## 2.0.0-alpha.152
|
891 |
|
892 | - Correctly parse comments inside multi-line tag literals
|
893 | - Readable names for generated (internal) variables
|
894 | - Tag literals act as block scopes for variable declarations
|
895 |
|
896 | ## 2.0.0-alpha.151
|
897 |
|
898 | - Fix interpolated style values in tag-tree selectors
|
899 |
|
900 | ## 2.0.0-alpha.150
|
901 |
|
902 | - Remove charset:utf8 option from esbuild
|
903 |
|
904 | ## 2.0.0-alpha.149
|
905 |
|
906 | - Fix regression with font-size presets (#569)
|
907 |
|
908 | ## 2.0.0-alpha.148
|
909 |
|
910 | - Allow declaring return type via `def method\returntype arg1, ...`
|
911 | - Fix crash when inlining sourcemaps on node 16+ (#567)
|
912 | - Overhaul `extend class` code generation for better tooling support
|
913 | - BREAKING: Compile predicate identifiers `name?` to unicode `nameΦ` and
|
914 | dashed identifiers `one-two-three` to `oneΞtwoΞthree` to avoid potential
|
915 | naming collisions and improve tooling support. If you previously relied on
|
916 | dashed identifiers converting to camelCase while interacting with an
|
917 | external library - this will no longer work. Ie `window.add-event-listener`
|
918 | will not work since `window` does not have an `addΞeventΞlistener` property.
|
919 | See [#568](https://github.com/imba/imba/pull/568) for more info.
|
920 |
|
921 | ## 2.0.0-alpha.147
|
922 |
|
923 | - Fix regression resulting in nested assets being rebuilt in incorrect folder
|
924 |
|
925 | ## 2.0.0-alpha.146
|
926 |
|
927 | - Added `--asset-names` and `--html-names` build options for controlling the generated paths
|
928 | - Tweaked format of generated manifest
|
929 | - Fixed issue with generated stylesheets being blank
|
930 | - Automatically include Link preload headers when serving through imba
|
931 | - Allow all valid RegExp flags in literal regexes
|
932 | - Generate class augmentations (`extend class/tag`) in tsc mode
|
933 | - Use setAttribute for non-idl element attributes
|
934 |
|
935 | ## 2.0.0-alpha.145
|
936 |
|
937 | - Fix bundler crash when parsing html entrypoints with doctype
|
938 | - Fix regression where imba `-w` would not detect changes in unhashed outputs
|
939 |
|
940 | ## 2.0.0-alpha.144
|
941 |
|
942 | - Experimental `<global>` slot to add global listeners from inside tags
|
943 | - `@event.outside` modifier that works in conjunction with `<global>` slot
|
944 |
|
945 | ## 2.0.0-alpha.143
|
946 |
|
947 | - Remove use of String#replaceAll (unsupported before node 15.0.0)
|
948 |
|
949 | ## 2.0.0-alpha.142
|
950 |
|
951 | - Don't crash when loading tags with `@intersect` listener on server
|
952 | - Fix svg parsing issue for large svg files (#543)
|
953 | - Fix incorrect dehydration when creating custom element on client directly via document.createElement
|
954 | - Inject asset imports in correct order relative to regular imports
|
955 | - Add support for `.eot` font file reference in stylesheets
|
956 | - Auto-generate combined stylesheet for server and client accessible via `<style src='*'>`
|
957 | - Stop auto-injecting styles for referenced assets when rendering `<html>` on server
|
958 |
|
959 | ## 2.0.0-alpha.141
|
960 |
|
961 | - Support webp,avif,apng,gif images in bundler
|
962 | - Fixed missing first character in non-minified css output
|
963 | - Expose imba.commit++ on globalThis
|
964 | - Fix compilation issue with `if false` inside tag tree
|
965 | - Respect custom palettes in imbaconfig.json when building
|
966 | - Allow aliasing palettes in imbaconfig.json
|
967 | - Support inlined svg elements on server
|
968 |
|
969 | ## 2.0.0-alpha.140
|
970 |
|
971 | - Improve output from `imba create`
|
972 |
|
973 | ## 2.0.0-alpha.139
|
974 |
|
975 | - Stop bundler from crashing when generating worker
|
976 |
|
977 | ## 2.0.0-alpha.138
|
978 |
|
979 | - Fix incorrect sourcemap paths with esbuild 0.9.7
|
980 | - Let server fail gracefully when accessing invalid asset urls
|
981 |
|
982 | ## 2.0.0-alpha.137
|
983 |
|
984 | - Fix relative path for mac/linux
|
985 |
|
986 | ## 2.0.0-alpha.136
|
987 |
|
988 | - Raise default browser-target from `edge16` to `edge18` due to esbuild warning
|
989 | - Make `imba create` executable on mac (#550)
|
990 | - Set default esbuild target to es2019 to transpile optional chaining++
|
991 | - Avoid using `-ad` in generated class-names due to adblockers (#531)
|
992 |
|
993 | ## 2.0.0-alpha.135
|
994 |
|
995 | - Minor improvements to sourcemapping
|
996 | - Fixed `import type default` compilation
|
997 |
|
998 | ## 2.0.0-alpha.133
|
999 |
|
1000 | - Improved sourcemapping
|
1001 | - Improved support for type annotations
|
1002 | - Fixed crash in bundler
|
1003 |
|
1004 | ## 2.0.0-alpha.132
|
1005 |
|
1006 | - Improve windows compatibility for bundler and `imba create`
|
1007 |
|
1008 | ## 2.0.0-alpha.131
|
1009 |
|
1010 | - Serve hashed (cacheable) assets with `Cache-Control: max-age=31536000`
|
1011 | - Remove `?v=xxxxxx` suffix from asset references generated with `--no-hashing`
|
1012 | - Allow `"external":["builtins",...]` to externalize builtin node modules for other platforms than `node`
|
1013 | - Add `-H` alias for the `--no-hashing` option
|
1014 |
|
1015 | ## 2.0.0-alpha.130
|
1016 |
|
1017 | - Upgraded esbuild to v0.9.2
|
1018 | - Automatically polyfill built-in node modules like buffer,stream,crypto etc when compiling for browser. Still experimental.
|
1019 |
|
1020 | ## 2.0.0-alpha.129
|
1021 |
|
1022 | - Prevent `touchstart` event on iPad Pro in `@touch.prevent`
|
1023 | - Fixed text in svg `<text>` elements (#482)
|
1024 |
|
1025 | ## 2.0.0-alpha.128
|
1026 |
|
1027 | - Fixed image asset urls in SSR
|
1028 | - Make bundler work with client entrypoint without any styles
|
1029 | - Dispatch bubbling `resized` event from ResizeObserver
|
1030 |
|
1031 | ## 2.0.0-alpha.127
|
1032 |
|
1033 | - Overhauled `@touch` to work be more consistent on touch devices
|
1034 | - Add `@touch.round` event modifier
|
1035 |
|
1036 | ## 2.0.0-alpha.126
|
1037 |
|
1038 | - Prevent `touchstart` event on iOS in `@touch.prevent`
|
1039 |
|
1040 | ## 2.0.0-alpha.125
|
1041 |
|
1042 | - Make custom events cancelable by default
|
1043 | - Make `@-webkit-scrollbar-*` style selectors work
|
1044 | - Make core event modifiers work for `@touch` event
|
1045 | - Fix issue where text selection did not work after `@touch`
|
1046 | - Make `@touch.prevent` prevent scrolling via `touch-action:none`
|
1047 | - Add `@important` style modifier
|
1048 |
|
1049 | ## 2.0.0-alpha.124
|
1050 |
|
1051 | - Update built-in colors to follow Tailwind 2.0
|
1052 | - Allow interpolating colors in runtime `<div[c:{mycolor}]>`
|
1053 | - Fix deep selector `>>>` with multiple nested children
|
1054 |
|
1055 | ## 2.0.0-alpha.123
|
1056 |
|
1057 | - Fix router crashing when event-related runtime code is tree-shaken
|
1058 |
|
1059 | ## 2.0.0-alpha.122
|
1060 |
|
1061 | - Fix issue with type inferencing tags in certain cases
|
1062 | - Add `suspend`, `unsuspend` component lifecycle methods
|
1063 | - Improved router interface & internals
|
1064 |
|
1065 | ## 2.0.0-alpha.121
|
1066 |
|
1067 | - Added `imba.serve` to `index.d.ts`
|
1068 | - Fix serious regression in router causing crash
|
1069 |
|
1070 | ## 2.0.0-alpha.120
|
1071 |
|
1072 | - Parse `fn await something` correctly
|
1073 | - Improved router internals
|
1074 | - Add internal `Node#attachToParent` and `Node#detachFromParent` methods
|
1075 | - Preserve signed zero in output (Fixes #497)
|
1076 | - Make hmr reloading work with raw html assets
|
1077 | - Make `--no-hashing` cli option actually work
|
1078 | - Build html entrypoints in correct dist folder
|
1079 | - Add `imba create` command for creating project from template
|
1080 |
|
1081 | ## 2.0.0-alpha.119
|
1082 |
|
1083 | - Add support for object spread syntax `{a:1, ...obj}`
|
1084 | - Fix regression causing crash when generating css
|
1085 |
|
1086 | ## 2.0.0-alpha.118
|
1087 |
|
1088 | - Only call imba.commit when events are actually handled
|
1089 |
|
1090 | ## 2.0.0-alpha.117
|
1091 |
|
1092 | - Alias `tabindex` to `tabIndex` in tag attributes.
|
1093 | - Fix scoping issue with css in tag trees
|
1094 | - Add experimental router aliases/redirects support
|
1095 | - Include preflight.css at root level of package
|
1096 |
|
1097 | ## 2.0.0-alpha.116
|
1098 |
|
1099 | - Convert durations (`1s`, `150ms`, `60fps` etc) to ms-based numbers on compile-time
|
1100 |
|
1101 | ## 2.0.0-alpha.115
|
1102 |
|
1103 | - Add `debounce` event modifier
|
1104 |
|
1105 | ## 2.0.0-alpha.114
|
1106 |
|
1107 | - Add `no-minify` option to cli
|
1108 | - Always compile `html` namespaced attributes to raw `setAttribute`
|
1109 |
|
1110 | ## 2.0.0-alpha.113
|
1111 |
|
1112 | - Add `__realname` as an unaltered alias for `__filename`
|
1113 | - Add support for selectors in tag tree - see [#490](https://github.com/imba/imba/issues/490)
|
1114 |
|
1115 | ## 2.0.0-alpha.112
|
1116 |
|
1117 | - Show full version (including alpha number) in cli `imba --version`
|
1118 |
|
1119 | ## 2.0.0-alpha.110
|
1120 |
|
1121 | - Add experimental `<tag autorender=interval>` inteface
|
1122 | - Add `?v=hash` to asset urls when filename hashing is turned off
|
1123 | - Add experimental support for `.html` entrypoints to `imba serve` and `imba build`
|
1124 | - Add `abs` and `rel` shorthands for `position` style property
|
1125 | - Fix memory leak when using `imba --watch`
|
1126 |
|
1127 | ## 2.0.0-alpha.109
|
1128 |
|
1129 | - Support extending native tags `tag Purchase < form`
|
1130 | - Allow defining global tags without dash in name
|
1131 |
|
1132 | ## 2.0.0-alpha.108
|
1133 |
|
1134 | - Fix issue with `@nth-of-type`, `@nth-child` selectors
|
1135 | - Improve internals of intersect event handling
|
1136 |
|
1137 | ## 2.0.0-alpha.107
|
1138 |
|
1139 | - Add `asset.body` property for accessing raw content of assets
|
1140 |
|
1141 | ## 2.0.0-alpha.106
|
1142 |
|
1143 | - Allow passing `rootMargin` options to intersect event
|
1144 | - Fix issue in router related to hash links
|
1145 |
|
1146 | ## 2.0.0-alpha.105
|
1147 |
|
1148 | - Fix issue with css property order
|
1149 |
|
1150 | ## 2.0.0-alpha.102
|
1151 |
|
1152 | - changelog and docs coming soon. see imba.io
|
1153 |
|
1154 | ## 2.0.0-alpha.60
|
1155 |
|
1156 | - Add `route-to.exact` modifier to router
|
1157 |
|
1158 | ## 2.0.0-alpha.59
|
1159 |
|
1160 | - Add support for numeric separator `100_000`
|
1161 | - Fix multiline regex parsing issues
|
1162 |
|
1163 | ## 2.0.0-alpha.58
|
1164 |
|
1165 | - Allow setting innerHTML in SSR
|
1166 |
|
1167 | ## 2.0.0-alpha.57
|
1168 |
|
1169 | - Update instantiation syntax in tests++
|
1170 |
|
1171 | ## 2.0.0-alpha.56
|
1172 |
|
1173 | - Add `new Foo` instantiation syntax
|
1174 | - Deprecate `Foo.new` instantiation syntax
|
1175 |
|
1176 | ## 2.0.0-alpha.55
|
1177 |
|
1178 | - Allow local/exportable tags (uppercased tag declarations)
|
1179 | - Allow interpolated tags inside strings in tag trees
|
1180 |
|
1181 | ## 2.0.0-alpha.54
|
1182 |
|
1183 | - Allow getters and setters in object literals
|
1184 |
|
1185 | ## 2.0.0-alpha.53
|
1186 |
|
1187 | - Allow media breakpoints in style selectors
|
1188 | - Added max-width breakpoints
|
1189 |
|
1190 | ## 2.0.0-alpha.52
|
1191 |
|
1192 | - Fix issue with nested `$reference` selectors
|
1193 | - Allow router to work for regular links
|
1194 | - Add route-to.replace modifier
|
1195 | - Add route-to.sticky modifier
|
1196 |
|
1197 | ## 2.0.0-alpha.51
|
1198 |
|
1199 | - No longer inheriting from CustomEvent as it is not supported in Safari
|
1200 | - Fix input data binding issue
|
1201 | - Added `before` and `after` style property modifiers
|
1202 | - Added `prefix` as alias for `before.content`
|
1203 | - Added `suffix` as alias for `after.content`
|
1204 |
|
1205 | ## 2.0.0-alpha.50
|
1206 |
|
1207 | - Fix nested selector bug
|
1208 | - Fix focus-within modifier
|
1209 | - Add `:local` pseudo-class for only styling local children of component
|
1210 | - Support `$reference` in selectors for targeting local referenced elements
|
1211 | - Change `display` style property to accept multiple layout aliases
|
1212 | - Add 1-digit color aliases (blue900 -> blue9 etc)
|
1213 |
|
1214 | ## 2.0.0-alpha.49
|
1215 |
|
1216 | - Allow border and border-(top|right|bottom|left) to accept a single color value
|
1217 | - Accept rgb/hsl/hex colors in text and border properties
|
1218 |
|
1219 | ## 2.0.0-alpha.48
|
1220 |
|
1221 | - Added multi-purpose `text` style property for describing font-family, font-size, font-style, font-weight, text-decoration, text-transform, line-height, letter-spacing and color in a single property
|
1222 | - Added shorthand style aliases for border-_ and flex-_
|
1223 |
|
1224 | ## 2.0.0-alpha.47
|
1225 |
|
1226 | - Added x, y, z, rotate, scale, scale-x, scale-y, skew-x, skew-y custom style properties
|
1227 | - Extended transition property to accept colors, styles, sizes as properties and custom easings
|
1228 |
|
1229 | ## 2.0.0-alpha.46
|
1230 |
|
1231 | - Added experimental syntax for css/styling. See [#334](https://github.com/imba/imba/pull/362)
|
1232 | - Broke scoped css comment blocks until further notice
|
1233 |
|
1234 | ## 2.0.0-alpha.45
|
1235 |
|
1236 | - Fix conditional rendering bug (#334)
|
1237 | - Changed event syntax from `<div :click.stop.{method()}>` to `<div @click.stop=method()>`
|
1238 | - Allow comments inside multiline tags
|
1239 | - Include left/right event key modifiers
|
1240 | - Improve resize and intersect events
|
1241 | - Always bind data when using `<tag[my-data]>` syntax
|
1242 |
|
1243 | ## 2.0.0-alpha.44
|
1244 |
|
1245 | - Improved lifecycle methods for components
|
1246 | - Fix sourcemapping for env-flags
|
1247 |
|
1248 | ## 2.0.0-alpha.43
|
1249 |
|
1250 | - Add syntax for element references `<div$reference>`
|
1251 | - Fix problem with missing ResizeObserver in safari
|
1252 |
|
1253 | ## 2.0.0-alpha.42
|
1254 |
|
1255 | - Fixed webpack imba/loader issues with scoped css
|
1256 | - Add event wrapper for ResizeObserver
|
1257 | - Add experimental router code
|
1258 | - Add basic support for setting dom classes outside of templates
|
1259 | - Allow calling imba.mount with a function
|
1260 | - Rename #context api to $context
|
1261 | - Rename parentContext to $parent
|
1262 |
|
1263 | ## 2.0.0-alpha.40
|
1264 |
|
1265 | - Introduce decorators with `@decorator` syntax. See [#334](https://github.com/imba/imba/pull/334)
|
1266 | - Allow declaring tag attributes. See [#335](https://github.com/imba/imba/pull/335)
|
1267 | - Shorthand `!` for invoking parenless methods (`object.mymethod!`)
|
1268 | - Implicit self is back (for good)
|
1269 |
|
1270 | ## 2.0.0-alpha.0
|
1271 |
|
1272 | See [#263](https://github.com/imba/imba/issues/263) for an overview of changes
|