## Next version ### Features - Users can pass an initial layout (TODO: Documentation) - The default skin is now included in the Skins section of the options menu by default. ## 1.2.0 ### Features - Users can register an `onWillClose` callback, which is passed a `cancel` function. The `cancel` function can be called to prevent Webamp from closing. [#655](https://github.com/captbaritone/webamp/pull/655) ### Internal changes - Webamp is now mostly built with [TypeScript](https://www.typescriptlang.org/). ## 1.1.2 ### Changes Webamp is no-longer rendered into the DOM node you pass into `webamp.renderWhenReady()`. Instead, Webamp is rendred as a direct child of the `
` tag. The passed DOM node is still used for positioning. Webamp will attempt to center itself within that DOM node when it renders. ### Features - Allow consumers to specify a z-index when constructing Webamp. ### Fixes - Fixes positioning of context menus in context menu targets when they are spawned while scrolled. - Improve performance of CharacterString, which gets rendered on every marquee step. ## 1.1.1 ### Fixes - Fixes the marquee text when the host page globally sets `box-sizing`. - Fixes the initial layout when the container is not at the top of the page. - Fixes the positioning of context menus created when scrolled down the page. ## 1.1.0 ### Breaking - Webamp will attempt to center itself within the node it is rendered into, rather than within the entire page. - Webamp now includes the default skin directly in the JS bundle, so you don't need host it separately, or pass a URL as part of the initialztiaon. ### Features - Equalizer sliders now "stick" slightly at zero. - Context menus on all windows. - Toggle window visibility via context menus. - Users can now hard code the duration of initial tracks. This saves Webamp from having to make an HTTP request to check the duration. ### Fixed - Marquee now displays one additional character: https://github.com/captbaritone/webamp/issues/543 - Track numbers in playlist are now padded to the length of the longest track number. - Fix close buttons in Playlist and Equalizer in shade mode. - Skins that omit assets will now fallback to using the default version of that asset. - Fix seeking forward via hotkeys. ## 1.0.0 **Important:** The NPM module as **moved** from `winamp2-js` to `webamp`. You will need to update your `package.json` to point to the new module. ### Breaking - Project renamed from "Winamp2-js" to "Webamp". - UMD module exports as `window.Webamp` instead of `window.winamp2js`. When used via `