Skip to content

Releases: angular-ui/ui-router

Yes, we finally released again

24 Apr 04:03
Compare
Choose a tag to compare

(2015-04-23) diff

At long last, your moment of zen.

0.2.14

Bug Fixes

  • $StateRefDirective: resolve missing support for svg anchor elements #1667 (0149a7bb)
  • $urlMatcherFactory:
    • regex params should respect case-sensitivity (1e10519f, closes #1671)
    • unquote all dashes from array params (06664d33)
    • add Type.$normalize function (b0c6aa23)
    • make optional params regex grouping optional (06f73794, closes #1576)
  • $state: allow about..* glob patterns (e39b27a2)
  • uiSref:
    • use Object's toString instead of Window's toString (2aa7f4d1)
    • add absolute to allowed transition options (ae1b3c4e)
  • uiSrefActive: Apply active classes on lazy loaded states (f0ddbe7b)
  • uiView: add $element to locals for view controller (db68914c)

Features

  • $state:
    • support URLs with #fragments (3da0a170)
    • inject resolve params into controllerProvider (b380c223, closes #1131)
    • added 'state' to state reload method (feat no.1612) - modiefied options.reload (b8f04575)
    • broadcast $stateChangeCancel event when event.preventDefault() is called in $sta (ecefb758)
  • $uiViewScroll: change function to return promise (c2a9a311, closes #1702)
  • uiSrefActive: Added support for multiple nested uiSref directives (b1844948)

0.2.13

21 Nov 04:24
Compare
Choose a tag to compare

(2014-11-20) diff

This release primarily fixes issues reported against 0.2.12

Bug Fixes

  • $state: fix $state.includes/.is to apply param types before comparisions fix(uiSref): ma (19715d15, closes #1513)
    • Avoid re-synchronizing from url after .transitionTo (b267ecd3, closes #1573)
  • $urlMatcherFactory:
    • Built-in date type uses local time zone (d726bedc)
    • make date type fn check .is before running (aa94ce3b, closes #1564)
    • early binding of array handler bypasses type resolution (ada4bc27)
    • add 'any' Type for non-encoding non-url params (3bfd75ab, closes #1562)
    • fix encoding slashes in params (0c983a08, closes #1119)
    • fix mixed path/query params ordering problem (a479fbd0, closes #1543)
  • ArrayType:
  • Param: fix default value shorthand declaration (831d812a, closes #1554)
  • common: fixed the _.filter clone to not create sparse arrays (750f5cf5, closes #1563)
  • ie8: fix calls to indexOf and filter (dcb31b84, closes #1556)

Features

0.2.12

14 Nov 04:22
Compare
Choose a tag to compare

(2014-11-13) diff

Bug Fixes

  • $resolve: use resolve fn result, not parent resolved value of same name (67f5e00c, closes [#1317], [#1353])
  • $state:
    • populate default params in .transitionTo. (3f60fbe6, closes [#1396])
    • reload() now reinvokes controllers (73443420, closes [#582])
    • do not emit $viewContentLoading if notify: false (74255feb, closes #1387)
    • register states at config-time (4533fe36)
    • handle parent.name when parent is obj (4533fe36)
  • $urlMatcherFactory:
    • register types at config (4533fe36, closes [#1476])
    • made path params default value "" for backwards compat (8f998e71)
    • Pre-replace certain param values for better mapping (6374a3e2)
    • fixed ParamSet.$$keys() ordering (9136fecb)
    • empty string policy now respected in Param.value() (db12c85c)
    • "string" type now encodes/decodes slashes (3045e415, closes [#1119])
    • allow arrays in both path and query params (fdd2f2c1, closes [#1073], [#1045], [#1486], [#1394])
    • typed params in search (8d4cab69, closes #1488)
    • no longer generate unroutable urls (cb9fd9d8, closes #1487)
    • handle optional parameter followed by required parameter in url format. (efc72106)
    • default to parameter string coersion. (13a468a7, closes #1414)
    • concat respects strictMode/caseInsensitive (dd72e103, closes [#1395])
  • ui-sref:
    • Allow sref state options to take a scope object (b5f7b596)
    • replace raw href modification with attrs. (08c96782)
    • nagivate to state when url is "" fix($state.href): generate href for state with (656b5aab, closes #1363)
    • Check that state is defined in isMatch() (92aebc75, closes #1314, #1332)
  • uiView:
  • urlRouter: html5Mode accepts an object from angular v1.3.0-rc.3 (7fea1e9d)
  • stateFilters: mark state filters as stateful. (a00b353e, closes [#1479])
  • ui-router: re-add IE8 compatibility for map/filter/keys (8ce69d9f, closes [#1518], [#1383])
  • package: point 'main' to a valid filename (ac903350)
  • travis: make CI build faster (0531de05)

Features

Default and Typed params

This release includes a lot of bug fixes around default/optional and typed parameters. As such, 0.2.12 is the first release where we recommend those features be used.

  • $state:
    • add state params validation (b1379e6a, closes #1433)
    • is/includes/get work on relative stateOrName (232e94b3)
    • .reload() returns state transition promise (639e0565)
  • $templateFactory: request templateURL as text/html (ccd60769, closes [#1287])
  • $urlMatcherFactory: Made a Params and ParamSet class (0cc1e6cc)

0.2.11

28 Aug 13:29
Compare
Choose a tag to compare

(2014-08-26) diff

Bug Fixes

  • $resolve: Resolves only inherit from immediate parent fixes #702 (df34e20c)
  • $state:
    • change $state.href default options.inherit to true (deea695f)
    • sanity-check state lookups (456fd5ae, closes #980)
    • didn't comply to inherit parameter (09836781)
    • allow view content loading broadcast (7b78edee)
  • $urlMatcherFactory:
  • UrlMatcher:
    • query param function defaults (f9c20530)
    • don't decode default values (63607bdb)
  • travis: update Node version to fix build (d6b95ef2)
  • uiSref:
    • Generate an href for states with a blank url. closes #1293 (691745b1)
    • should inherit params by default (b973dad1)
    • cancel transition if preventDefault() has been called (2e6d9167)
  • uiView: Fixed infinite loop when is called .go() from a controller. (e13988b8, closes #1194)
  • docs:
    • Fixed link to milestones (6c0ae500)
    • fix bug in decorator example (4bd00af5)
    • Removed an incorrect semi-colon (af97cef8)
    • Explain return value of rule as function (5e887890)

Features

  • $state:
    • allow parameters to pass unharmed (8939d057)
      • BREAKING CHANGE: state parameters are no longer automatically coerced to strings, and unspecified parameter values are now set to undefined rather than null.
    • allow prevent syncUrl on failure (753060b9)
  • typescript: Add typescript definitions for component builds (521ceb3f)
  • uiSref: extend syntax for ui-sref (71cad3d6)
  • uiSrefActive:
    • BREAKING CHANGE: Also activate for child states. (bf163ad6, closes #818)
    • uiSrefActiveEq: new directive with old ui-sref-active behavior
  • $urlRouter:
    • defer URL change interception (c72d8ce1)
    • force URLs to have valid params (d48505cd)
    • abstract $location handling (08b4636b)
  • $urlMatcherFactory:
  • UrlMatcher:
    • handle query string arrays (9cf764ef, closes #373)
    • injectable functions as defaults (00966ecd)
    • default values & type decoding for query params (a472b301)
    • allow shorthand definitions (5b724304)
    • validates whole interface (32b27db1)
    • implement non-strict matching (a3e21366)
    • add per-param config support (07b3029f)
      • BREAKING CHANGE: the params option in state configurations must now be an object keyed by parameter name.

0.2.10

13 Oct 15:33
Compare
Choose a tag to compare

0.2.9

13 Oct 15:33
Compare
Choose a tag to compare

The One Where They Finally Included Release Notes

16 Jan 21:16
Compare
Choose a tag to compare

diff

Nate and I are excited to release UI.Router 0.2.8! Many thanks goes to @nateabele and
various contributors for continuing to maintain the ui-router code base. If you follow the repo, you've noticed that popularity and adoption of ui-router is increasing steadily. We truly believe ui-router represents the future of routing and UI management within Angular and the core team agrees. We hear all the time that ui-router serves as the cornerstone of many applications, bringing sanity to routing and organization of developers' applications.

On to what's new in 0.2.8!

  • One big problem we started to run into is that ui-router is used with many versions of Angular. This means we need to be backwards-compatible even as Angular's API changes. Nate did great work to set up tests that now run against 1.0.8, 1.1.5, and 1.2.4. With this foundation in place it should be easy to test against newer versions as they are released. Thanks also to @dlukez for help with many broken tests.
  • With the above implemented, we had tons of breaking tests. One large feature that comes from fixing these tests is support for the 1.2 animation syntax (as opposed to the previous syntax which is also still supported). I'll be updating the FAQ soon to have a working example of this new syntax.
  • You can now specify a target attribute on your a[ui-sref] links and it will be respected. Thanks to @roryf!
  • A much-requested feature: the autoscroll attribute. This adds an autoscroll="expr" attribute to uiView, just like ngInclude has. It also replaces the $anchorScroll call in uiView with a custom
    provider which scrolls the element attached to uiView into the current view instead. This should allow a more fine-tuning for designers by scrolling automatically to the activate uiView without
    manipulating anchors. Calling $uiViewScrollProvider.useAnchorScroll() will restore the current
    behavior or calling $anchorScroll instead. Docs are forthcoming! Thanks to @ysbaddaden for the efforts on this.
  • Fixed param inheritance issue for siblings. Now, if two siblings share a parameter, that param will not be retained when traveling from one sibling to the other. Thanks, @mikekap.
  • Lastly, thanks to @PascalPrecht for various improvements and optimizations to our build process. Two cool items he added that we've yet to really use (but plan on using soon) are changelog and ngdoc support. We hope to fully implement these items by 0.3.0 (but you can preview the pre-release docs here!).

Thanks,
Tim

0.2.7

13 Oct 15:35
Compare
Choose a tag to compare

0.2.6

13 Oct 15:35
Compare
Choose a tag to compare

0.2.5

13 Oct 15:35
Compare
Choose a tag to compare