Skip to content

v2.1.0

Choose a tag to compare

@nexus-ci nexus-ci released this 19 Oct 02:04
· 345 commits to master since this release
21d657c

2.1.0 (2018-10-19)

Bug Fixes

  • add 'error' handler around mw stack (5d2f33b)
  • Add baseUrl directly to endpoint route. This should make fix issues with automated endpoint test units. (caf72ef)
  • Add cubic-client as dev dependency (14c37e2)
  • Add cubic-client as dev dependency (cc9ef4a)
  • Add cubic-client as dev dependency (1ad88e4)
  • Add missing preserveState flag on store module registration for sub-components. Add ability to force re-register a module client-sided. (5ae5a95)
  • Add RESTful method to initial file check (18fae53)
  • Add webpack config by default. This should get rid of webpack's odd behaviour inside node_module packages. Also gives users more control. (1130a6d)
  • adjusted header functionalities (054dbc1)
  • Allow authentication without user/pass if refresh token is present (0152d87)
  • Allow multiple RESTful methods for same URL (c36f69d)
  • Apply preauth hook to WS adapter, not Socket.io (49f0ef0)
  • Assign socket.io req.query values directly in adapter (89785d7)
  • Attempt normal response if an error occurs while sending raw files. (8055f1b)
  • Automatically redirect on 3xx responses. (b0849c8)
  • Await bundles in webpack config output path instead of core config publicPath. (dc4c10a)
  • await bundles to become ready while using webpack in production (cc5783f)
  • Await reconnection promise before checking state (9345a15)
  • Bump version manually (111b4f2)
  • Check each folder individually (3d6f20e)
  • Confirm ack on subscribe/publish events to prevent client-sided memory leaks due to unfulfilled callbacks. (63c7544)
  • corrected authCookie config path (af85736)
  • correctly parses the base64 cookie now (61d5791)
  • Don't assume cached raw files anymore. Caching for raw files has been disabled in cubic-core and should be done through a CDN instead. (e173ad1)
  • Don't decache default endpoint (view rendering) (f9babac)
  • Don't hook cookie middleware when api node is not present (2483d06)
  • Don't stringify body for res.json socket.io equivalent. (c2c2871)
  • Don't throw on webpack errors in dev mode (d52e99c)
  • Ensure a 503 response is returned when no node has connected to the API yet. (d0dcff3)
  • Ensure connection status every 10 seconds. (6ffe6d9)
  • ensure provided options are an object (db0ba8b)
  • ensure provided options are an object (93ffad6)
  • ensure that provided config is an object (f6bcaa0)
  • ensure that provided config is an object (6ca7548)
  • Explicitly ignore generated route file in npmignore. (fca3890)
  • Fiux blitz-js-api module reference (ed8aeaa)
  • Fix bug that would cause the logger to display everything as http. (c6d7442)
  • Fix error logic when authenticating. (fefd523)
  • Fix error message using wrong parsing logic for some errors. (c72ba67)
  • Fix functions requiring the old reconnect method. (1097732)
  • Fix issue where asyncData wouldn't be reloaded if the router view component is the same on route change. (daeb45b)
  • Fix issue where multiple reconnects would fire at once, leading to even worse connection issues. (c16adb2)
  • Fix issue where progress bar would only be triggered once. (ebdadeb)
  • Fix issue where purely numerical responses would cause an error while logging. (e098151)
  • Fix issue where setAccessToken wouldn't wait for the initial connect to finish. (a2bb864)
  • Fix issue where socket.io would randomly decide not to connect (fuck socket.io, seriously) (7890500)
  • Fix issue where the logger middleware would turn response objects into strings. (ab8e0ab)
  • Fix last npm version not being published (ee4d643)
  • Fix memory leak when decaching endpoints in dev mode. (cd0b703)
  • Fix request controller always waiting for all nodes. (d01540f)
  • Fix ServerErrors returning undefined as reason. (a40ee15)
  • Fix small memory leak in endpoint class (68945d8)
  • Fix small memory leak in publish/cache functions. (8057987)
  • Fix some edge cases with the connection/reconnection logic. (c45912d)
  • Fix ssr blitz-js client connecting to wrong api node (7e8caf5)
  • Fix that stupid package-lock.json (4bcc19c)
  • Fix that stupid package-lock.json (5b8772c)
  • Fix webpack running multiple builds in dev mode, fixes log spam (c105239)
  • Fix wrong progress bar import causing progress bar not to work. (416f352)
  • Fix wrong progress bar import causing progress bar not to work. (10b176a)
  • Generate specified public folder if none exists (59d959f)
  • Ignore bundled files (64e2669)
  • ignore generated routes in future (ab1b32d)
  • implement async-middleware-stack 1.0.1 changes (dd8ff35)
  • Improve performance by not loading files before endpoints. (cab6447)
  • Include cubic-api as dev-dependency for auth-node peer deps. Also use npm update in build step, so the latest version of each node is installed automatically. (2f2b94a)
  • Include cubic-api as dev-dependency for auth-node peer deps. Also use npm update in build step, so the latest version of each node is installed automatically. (0d61ccd)
  • Irresponsibly remove forced reconnect retries that may or may not have caused issues. (At least it passes the tests) (99002e7)
  • Keep original reconnect behaviour alive, so long-term disconnects won't cause issues. (4c1bc7e)
  • Keep webpack config in package. (99f1872)
  • Load core node first, so the cubic-loader wouldn't indefinitely wait for the api node. (290b8ba)
  • log req/res/timer in single stdout to avoid overlapping messages (84561dc)
  • Logger no longer doesn't log when the response is an object. (850d5a0)
  • Merge with other changes from 2.0 overhaul, specifically cookie logic. (0f00297)
  • Narrow down response to 'RES' action (b8811e0)
  • now sets access token in req object again (049aa75)
  • package desc. (b976f05)
  • Pass proper URL to Vue SSR router (fe4baf2)
  • Prevent auth check when no scope is required (81e427d)
  • Prevent leaky reconnection behaviour where more reconnects than necessary would be triggered. (594fad2)
  • Prevent reconnect not ignoring reconnect requests when there's already one in progress. Add error listeners. (8319cc1)
  • Prevent retry attempts from timing out (0377dc7)
  • Re-implement retry if initial connects failed (26605b3)
  • Reconnect in case of connect_errors instead of throwing an error. (3b6650a)
  • Recursively resolve asyncData hooks when client-sided. (1fdc56d)
  • Refer to cubic-client as a peer dependency (2dac015)
  • Refer to cubic-client as a peer dependency (06604ed)
  • Reimplement forced reconnect on failing initial connection. (4157c4d)
  • Reload connection when new access token is set (4e625a2)
  • remove debug code from overhaul (a8c5e72)
  • ci: Add missing cubic-client dev dependency (55d5587)
  • ci: Add release rules for major patches. (3d34daa)
  • ci: Fix references to internal webpack config (4e7e1ae)
  • ci: Publish main package on changes as well (35bb66c)
  • ci: Require cubic-client as dev dependency for cubic-core (c7500c6)
  • client: Implement fixes from node.js package into browser package. (ddbaab0)
  • package: Add missing dependencies directly (8e182ac)
  • package: Fix ci tests for new cubic-client version (f3181b2)
  • package: Fix cubic-client not being available as implicit depndency. (66a5dcc)
  • package: Up cubic deps (729719f)
  • package: Up to cubic-client@1.0.5 (739890b)
  • package: update autoprefixer to version 9.0.0 (8b52564)
  • package: update css-loader to version 1.0.0 (3d0d893)
  • package: update cubic-api to version 1.0.10 (4c83169)
  • Stop logging middleware from sometimes responding twice, resulting in an error. (3bec7d9)
  • package: update cubic-core to version 1.0.3 (d6da63d)
  • package: update cubic-core to version 1.0.3 (0eaad23)
  • package: update file-loader to version 2.0.0 (948cd42)
  • packages: Reset to babel-loader@7.x (5cdd464)
  • packages: Update babel plugins (cc8eb8f)
  • packages: Upgrade to new babel core (7.x) (947a107)
  • ui: Properly ignore compiled routes file (7f9e85a)
  • ui: Remove compiled routes file (127123c)
  • webpack: Fix entry point direction (0f7635e)
  • remove debug code to src instead of bundled (c344264)
  • webpack: Fix server-sided bundle entry and use null-loader for styles. (a80dc5e)
  • Remove debug logs lol (932ec00)
  • remove generated routes from git (c5de73e)
  • Remove redundant variable reset (f879224)
  • remove temporary meta tags since vue-meta is implemented (5bfe330)
  • remove unnecessary public path (e70fcea)
  • Remove vue-touch from base setup. (resolves #22) (5159e81)
  • removed relative paths (aca99e0)
  • Resend endpoint schema when connection to API is lost (487d4e5)
  • Resolve initial connection promise after 'connect' event occured. (f6bb836)
  • Resolve issues with server-sided css parsing errors. (87edd11)
  • restore blitz-js-query bundle method (9a9981e)
  • Revert last changes, seems to have messed up some things. (e905d9c)
  • revert webpack config issues (5ce2f3b)
  • show 'value' for required query param example when not matched (3419c22)
  • Simplify error checks in responses, which should prevent some cases from not being fired. (0f93b43)
  • Stop caching raw files. Redis really isn't made for that task - use a CDN instead. (c53b6e6)
  • Temporarily remove auto-refresh in auth middleware. (b23aefa)
  • Throw custom ServerError instead of error response object. (cc7f7b3)
  • Up cubic dependencies (c72bf0f)
  • Up cubic-loader, assign webpackServer to core node, remove Endpoint reference, build webpack bundles before test (af89a2d)
  • Up deps (81d03ea)
  • Update cubic-client to 2.0.0 (e7669dc)
  • Update cubic-client to 2.0.0 (08ecc9c)
  • Upgrade cubic-client dep for tests (24bedc5)
  • Use callback based inter-node communication instead of relying on custom request ids. (236e848)
  • Use callback based inter-node communication instead of relying on custom request ids. (65f2577)
  • Use common error response format when tokens expire. (bd9f1cd)
  • Use correct delay timer when error reason is given without timer (e7691bc)
  • Use correct entry point that directs to cubic-ui package (f70c602)
  • Use javiertury's vue-meta ssr implementation (less buggy & hacky) (7b87865)
  • Use null-loader for ssr style rendering. Up cubic-defaults. (2a3b280)
  • Use single redis client for cache/limiter middleware. This should save around ~10MB of memory. (6a21ee2)
  • Wait for actual user insertion before returning response (3b39b18)
  • webpack: Use cache for babel-loader. This should somewhat improve performance. (e7daf9c)
  • Who the fuck thought Socket.io is a good idea. (ea2095c)
  • wrong reference to socket converter (b65236a)
  • Wrong test suite name (01ce680)

Features

  • Add 'once' method to listen to an event exactly once (cc3636c)
  • Add exclude path for sub endpoints (5c9e717)
  • Add functions to retrieve or set current tokens (277b127)
  • Add global rate limiter to reduce server load in ddos-like situations. (071e8b4)
  • Add head support via head key w/ vue-meta (resolves #4) (82629a0)
  • Add login method to re-authorize at runtime (83d5c6e)
  • add middleware loader, refactor existing methods into middleware (2b810ac)
  • add support for baseUrl on unspecified endpoint url (bf012d4)
  • Add support for res.sendFile (a17b629)
  • Add support for res.sendFile on socket connections. (66d0ecd)
  • Add userkey API endpoint to retrieve a user's user_key (18d18fd)
  • added longlasting cookie option (5079245)
  • allow custom prefix for logging (4a18e82)
  • enable 0 config setup (fbf905a)
  • Enable async cache/publish on blitz-js-core (d9ead02)
  • Expose api, store, router to asyncData hooks this (ddc40b4)
  • expose middleware use method on top level (605f663)
  • Implement auth cookie handling. (391a9fb)
  • Make publish/cache functions of endpoints async (25f45b0)
  • redirect on /authenticate endpoint (cecff73)
  • Set cubic-api, cubic-core as peer dependencies, so updates from these packages don't require a re-release. (1ce4b82)
  • Set cubic-api, cubic-core as peer dependencies, so updates from these packages don't require a re-release. (2bada2a)
  • sets cookie based on tokens (base64 encoded) (aa00bb8)
  • show current node in logs instead of protocol (644ad61)
  • Support new cubic-api response format. (38c5d6a)
  • takes over headers from response (64bd57a)
  • Upgrade to vue-loader@15.x (3e946a9)
  • Upgrade to webpack 4.5 (870ce83)
  • Use webpack config from folder directly. No more unpredictable errors from having webpack inside a node_modules package. Looks in /config/webpack/* by default. (d589ea3)

Performance Improvements

  • Don't attach logger middleware in monitor mode. This should slightly improve performance. (bb1c294)