Changelog
0.1.25
14 Jan 2020 14:36:00 GMT
Stable release including all the changes of 0.1.25-* alpha releases.
0.1.24
14 Jan 2020 14:36:00 GMT
Stable release including all the changes of 0.1.24-* alpha releases.
0.1.23
4 Nov 2019 14:36:00 GMT
Stable release including all the changes of 0.1.23-* alpha releases.
0.1.23-4
4 Nov 2019 14:23:00 GMT
@misk/cli
- Update Misk Admin Dashboard multibindings generated in CLI
miskcommand
0.1.23-3
29 Oct 2019 19:58:00 GMT
@misk/test
- Add max workers to Jest configuration to prevent CircleCI out of memory errors
0.1.23-2
16 Oct 2019 14:40:00 GMT
@misk/simpleredux
- Plumb out
failureSagaoption for similar purpose tomergeSagaexcept for in failure cases - For example, a
failureSagacould be added to asimpleHttpPostcall that on call failure, issues a network request retry or other action
0.1.23-1
15 Oct 2019 17:24:00 GMT
@misk/core
- Update
DashboardMetadataActionpath to/api/dashboard/{dashboardId}/metadata
0.1.23-0
15 Oct 2019 17:24:00 GMT
@misk/core
- Update
MiskContainerto support Misk API changes toDashboardMetadataActionandServiceMetadataAction
0.1.22
1 Oct 2019 15:24:00 GMT
@misk/simpleredux
Fix bug in handler parsing of options.overrideArgs.
0.1.21
1 Oct 2019 15:24:00 GMT
@misk/simpleredux
Update handler functions to accept overrideArgs in the options object, instead of as a seperate function parameter. This specifically improves the usage for onClick functions as outlined below where empty options object no longer need to be used to reach the overrideArgs parameter.
// Old
<Button onClick={handler.simpleMergeData(props, "my-tag", {}, data)}/>
// New
<Button onClick={handler.simpleMergeData(props, "my-tag", { overrideArgs: data })}/>
0.1.20
25 Sept 2019 16:24:00 GMT
Stable release including all the changes of 0.1.20-* alpha releases.
0.1.20-4
25 Sept 2019 15:24:00 GMT
@misk/simpleredux
- Fix more bugs found using
mergeSagaMapKeysToTagsin different use cases.
0.1.20-3
25 Sept 2019 14:24:00 GMT
@misk/simpleredux
- New dedicated
mergeSagafile for all library provided genericmergeSagathat can optionally be used indispatchSimpleReduxcalls to add post call asynchronous functionality - Rename
mapMergeSagatomergeSagaMapKeysToTagsand move to separatemergeSagafile - Add documentation and stub out test for
mergeSagaMapKeysToTags
0.1.20-2
27 Sept 2019 11:24:00 GMT
@misk/core
Tablecomponent now takes a range[start: number, end: number]to signify the rows to display. This replaces themaxRowsprops.
@misk/simpleredux
simpleSelectorPickTransformextends existingsimpleSelectorPick(which matches Lodash's Pick API) to allow for reshaping the object with picked keys.dispatchSimpleReduxfunctions now take an options object that allows for named passing in ofrequestConfigandmergeSaga.mergeSagaaccepts a generator function Saga that will run after the dispatch function's action is executed. This means that asimpleHttpGetwill execute first and then the response will be included in the payload that themergeSagahas access to.mergeSagais then responsible to choose whether to emit any additional state update events or handle other asynchronous computation. Since it is a full saga and a generating function, the block of computation is asynchronous and follow up network requests or large computation can be done without risk of blocking render. See a full example of this in the newExampleMergeSagaContainerinpalette-exemplar.- Universal
handler. Many components allow for passing in anonChangehandler that is a function accepting user event driven input and executing side effects. For example, an<InputGroup/>returns the latest text in the text box, and a simpleonChangehandler would persist the latest text in a tagged spot in Redux. Components though do not have a universal form of input they provide to theironChangehandler. Instead of developers having to keep track of what function signature the componentonChangeprops is expecting,@misk/simplereduxnow has a universalhandlerthat provides the same function names asdispatchSimpleRedux(ie.handler.simpleMergeData,handler.simpleHttpGet...) but can handle directly input from an componentonChangeoronClickprops. - The universal
handlercan handle input from anyonChangeoronClickprops because of a newparseOnChangeArgsengine that identifies the format of input fromonChangeand returns it in a format that thedispatchSimpleReduxfunctions can use. See examples ofhandlerin bothstarter-basicandpalette-exemplartabs. onFn[Click,Change,Toggle,Tags]Callfunctions are deprecated in favor ofhandler.
0.1.20-1
25 Sept 2019 20:40:00 GMT
@misk/cli
newcommand now accepts two positional arguments fortitleCaseandslugCasenames for the new tab to be generated. The Misk-Web CLI no longer requires manual invocation of./new-tab.sh!
Example Tabs
- Add support to
./new-tab-starter-basic.shthat allowstarter-basicto be used in docs site demo and as template for new tabs - Add
Palette-ExemplarandPalette-LTStabs to docs site example demos
0.1.20-0
25 Sept 2019 20:40:00 GMT
@misk/core
- Upstream new
<Table data={data} maxRows={5} />component from palette-exemplar tab for tables that autogenerate from a list of objects.
Example Tabs
- New
starter-basictab for use inmiskweb newcreation of new tabs. Much simpler bare bones structure making for a less overwhelming start for new tab developers. palette-exemplarwill remain to showcase more advanced features and use cases
0.1.19
17 Sept 2019 19:19:00 GMT
Stable release including all the changes of 0.1.19-* alpha releases.
- Bug fixes for
0.1.18release of@misk/simpleredux - New
MiskNavbarContainerin@misk/core
0.1.19-3
17 Sept 2019 18:25:00 GMT
@misk/core
- Upstream from Misk, the
MiskNavbarContainerthat can be extended to support front end dashboards for any Misk service
0.1.19-2
16 Sept 2019 18:34:00 GMT
@misk/simpleredux
- Reverse changes from
0.1.19-1 - Add new dispatch function
simpleMergeDatathat does the similar encapsulation instead to provide that functionality to call sites that aren't usingon*FnCallutilities - Deprecated
simpleFormInputnow resolves tosimpleMergeDatainstead ofsimpleMerge
0.1.19-1
16 Sept 2019 15:55:00 GMT
@misk/simpleredux
- Update
onChangeFnCall,onChangeToggleFnCallandonChangeTagFnCallto call functions with data enclosed in an object with adatakey. This will fix outstanding bugs from the new simpleMerge` functionality. No migration should be required.- Old
export const onChangeFnCall = (callFn: any, ...args: any) => (event: any) => { callFn(...args, event.target.value); };- New
export const onChangeFnCall = (callFn: any, ...args: any) => (event: any) => { callFn(...args, { data: event.target.value }); };
0.1.19-0
13 Sept 2019 20:16:00 GMT
@misk/simpleredux
- Move
HTTPMethodDispatchfrom@misk/coreto@misk/simplereduxto fix and prevent future API drift
0.1.18
13 Sept 2019 17:52:00 GMT
Stable release including all the changes of 0.1.18-* alpha releases.
0.1.18-7
13 Sept 2019 15:18:00 GMT
@misk/cli
- Update Yargs library usage. There should no longer be deprecation warnings!
0.1.18-6
12 Sept 2019 15:18:00 GMT
@misk/simpleredux
- Unified SimpleRedux flow merging together SimpleForm and SimpleNetwork
- Extensive test coverage across new flow
- Usage of old SimpleForm and SimpleNetwork Redux elements now call out to the new SimpleRedux flow and log deprecation warnings encouraging upgrading to the unified flow.
0.1.18-5
12 Sept 2019 14:57:00 GMT
@misk/core
- Add
ResponsiveAppContainerthat extendsResponsiveContainerwith styling to keep it below the Navbar - Make
environmentToColortheme configuration easier with lookup table now as a parameter to create the function - See examples in the Custom Styling docs
0.1.18-3
11 Sept 2019 20:17:00 GMT
@misk/core
- Navbar is now themable!
- Override the default theme by providing a new theme through props
- Take advantage of the
defaultThemeif you only want to change one of the theme values - See examples in the Custom Styling docs
0.1.18-2
10 Sept 2019 20:59:00 GMT
@misk/core
- Added new props to Navbar to allow customization of MenuButton. All are optional and have sane defaults for the default interaction of showing the menu with respective icons.
menuIcon?: IconName | JSX.Element | string: Set the icon that shows when the menu is closed. It can be a BlueprintJS IconName, a React JSX.Element, or a string URL to an image.menuOpenIcon?: IconName | JSX.Element | string: Set the icon that shows when the menu is open. It can be a BlueprintJS IconName, a React JSX.Element, or a string URL to an image.menuButtonAsLink?: boolean: Show the menuIcon and onClick go to thehomeUrlinstead of opening the menu.menuShowButton?: boolean: Hide the MenuButton entirely.
@misk/test
- Add
@testing-library/domlibrary for easier tests that check for certain rendered elements or text
0.1.18-1
22 Aug 2019 22:18:00 GMT
@misk/simpleredux
- Move around files in library
- There should be no change in functionality
0.1.18-0
22 Aug 2019 19:54:00 GMT
@misk/simpleredux
- Deprecate
simpleSelectin favor of two new functions:simpleSelectorGetandsimpleSelectorPick - Both new functions have the same API and under the hood use Lodash corresponding functions
getandpick - Update
simpleSelectcalls to either of the two new functions soon assimpleSelectwill be removed in a future release - See more in
@misk/simplereduxdocumentation
simpleSelectorGet
Allows for single-key cached selection from Redux state
Most directly equivalent to deprecated
simpleSelect// OLD const field1 = simpleSelect(props.simpleForm, "Dino::Field1", "data") const tagsField = simpleSelect(props.simpleForm, "Dino::Tags", "data", simpleType.array) // NEW const field1 = simpleSelectorGet(props.simpleForm, ["Dino::Field1", "data"]) const tagsField = simpleSelectorGet(props.simpleForm, ["Dino::Tags", "data"], [])
simpleSelectorPick
Allows for multi-key cached selection from Redux state
// OLD const fields = [ "Name", "Price", "Itemized Receipt", "CheckAlice", "CheckBob", "CheckEve", "CheckMallory", "CheckTrent", "Meal", "Tags" ].map((f: string) => `Dino::${f}`) const fieldsData = fields .map((key: string) => { const value = simpleSelect(props.simpleForm, key, "data") return { [key]: value } }) .reduce((prev, current) => ({...prev, ...current}), {}) // New const fields = [ "Name", "Price", "Itemized Receipt", "CheckAlice", "CheckBob", "CheckEve", "CheckMallory", "CheckTrent", "Meal", "Tags" ].map((f: string) => `Dino::${f}.data`) const fieldsData = simpleSelectorPick(props.simpleForm, fields)
0.1.17
20 Aug 2019 14:00:00 GMT
- Stable release
0.1.17-4
15 Aug 2019 14:00:00 GMT
@misk/dev
- Use webpack
aliasforsrc/andtests/imports
@misk/test
- Use
moduleNameMapperinjestforsrc/andtests/imports
0.1.17-2
14 Aug 2019 16:15:27 GMT
@misk/cli
- Use ShellJS instead of process.exit to pass through exit code
0.1.17-1
14 Aug 2019 16:05:27 GMT
@misk/cli
- Exit with failure codes from executed scripts so that CLI fails if downstream tasks fail
0.1.17-0
14 Aug 2019 14:16:27 GMT
- Bump
reactandreact-domfrom16.8.6to16.9.0
@misk/test
- Migrate from
react-testing-libraryto@testing-library/react(package was renamed) - Bump
@testing-library/reactfrom6.1.2to9.1.1 - All test files with imports from
react-testing-librarywill need to be changed to import from@testing-library/react
0.1.16
14 Aug 2019 13:39:27 GMT
@misk/dev
- Two new keys added to
miskTab.jsonfor expanded configuration of the Webpack build provided by@misk/devrawIndexoption stops injecting unused Script tags in Misk Loader tab, instead copies the index.html from src as is without any processinguseWebpackBundleAnalyzerallows turning off or on in non-production environments Webpack Bundler Analyzer reports
@misk/simpleredux
- New
IRouterProvidedPropsinterface to be uesd to access the optionally injected React-Router props of history, location, and match. Useful for handling path parameters, see the docs for more.
0.1.13
15 Jul 2019 12:29:37 GMT
@misk/simpleredux
- New
SimpleReduxSagatype to alias the type of arootSagain a tab'ssrc/ducks/index.tsto support bumpingredux-sagaslibrary. It looks as follows.export function* rootSaga(): SimpleReduxSaga { yield all([ fork(watchPaletteSagas), ...
Old Changelog
2019-02-21: First stable release of
@misk/simplereduxat0.1.4.2019-02-20: Move
ducksout of@misk/commonand@misk/coreinto@misk/simplereduxfor better centralized, isolated functionality. Effective as of@misk/*@0.1.4-4^.2019-02-20: All interfaces, functions, colors, and code in
@misk/commonhas been moved to@misk/core.@misk/commonnow only has styles and vendors library creation. Update any broken references to point to@misk/core. Effective as of@misk/*@0.1.4-3^.2019-02-14:
simpleNetworkResponserenamed togetSimpleNetwork. Many other potential breaking changes in refactor and release ofSimpleNetworkDucksandSimpleFormDucks. API not stable and may be changed in upcoming releases for simplicity. Effective as of@misk/core@0.1.4-2^.2019-02-07:
responseinsimpleNetworklibrary renamed tosimpleNetworkResponsefor less ambiguity when devs call it and to match prefixed function idiom established in0.1.3-15. Effective as of@misk/core@0.1.3-18^.2019-02-07:
simpleNetworklibrary functions in props are now all prefixed such thatthis.props.getis nowthis.props.simpleNetworkGetto prevent collisions with other dispatcher objects. Effective as of@misk/core@0.1.3-15^.2018-11-30:
@misk/componentsrenamed to@misk/core. All versions and Docker at0.1.0.2018-11-08:
@misk/common@0.0.61,@misk/core@0.0.77,@misk/dev@0.0.64. Import styles as a css file instead of JS. New version required parameter in package.json:miskTab.Update
src/index.htmlto include the following<!-- Misk Libraries --> <link rel="stylesheet" type="text/css" href="/@misk/common/styles.css" /> <script type="text/javascript" src="/@misk/common/vendors.js" preload></script> <script type="text/javascript" src="/@misk/common/common.js" preload></script> <script type="text/javascript" src="/@misk/core/components.js" preload></script>2018-11-05:
@misk/common@^0.0.59,@misk/core@^0.0.76,@misk/dev@^0.0.60,@misk/tslint^@0.0.10. Revert back to StyledComponents because of difficulties in downstream migrations. Upgrade toconnected-react-router@^5.0.0.Replace all imports of
react-emotionwithstyled-components.In
src/ducks/index.tsupdaterootReducerandIStateto the followingimport { connectRouter, LocationChangeAction, RouterState } from "connected-react-router" import { History } from "history" import { combineReducers, Reducer } from "redux" ... export interface IState { loader: ILoaderState router: Reducer<RouterState, LocationChangeAction> } ... export const rootReducer = (history: History) => combineReducers({ loader: LoaderReducer, router: connectRouter(history) })2018-11-01:
@misk/dev@^0.0.47and@misk/common@^0.0.52. Prettier integration, Slug now injected intoindex.html.Replace
src/index.htmlwith the following:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> </head> <body> <div id="<%= htmlWebpackPlugin.options.slug %>"></div> <!-- Misk Libraries --> <script type="text/javascript" src="/@misk/common/styles.js" async></script> <script type="text/javascript" src="/@misk/common/vendors.js" preload></script> <script type="text/javascript" src="/@misk/common/common.js" preload></script> <script type="text/javascript" src="/@misk/core/components.js" preload></script> </body> </html>Create a file
prettier.config.jswith the following:const { createPrettierConfig } = require("@misk/dev") module.exports = createPrettierConfig()This was reverted on 2018-11-05: Replace all imports of
styled-componentswithreact-emotion.Add the following to
package.jsonand add it as a prerequisite tobuildandstartsteps."lint": "prettier --write --config prettier.config.js \"./src/**/*.{md,css,sass,less,json,js,jsx,ts,tsx}\"",Change
miskTabBuildertocreateTabWebpackinwebpack.config.js.Change
makeExternalstocreateExternalsinwebpack.config.js.2018-10-28:
@misk/common@^0.0.52.createApp()andcreateIndex()Replace
src/index.tsxwith the following:import { createApp, createIndex } from "@misk/core" import * as Ducks from "./ducks" import routes from "./routes" export * from "./components" export * from "./containers" createIndex("config", createApp(routes), Ducks)Delete
src/App.tsx.