Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency react-refresh to ^0.14.0 #212

Merged
merged 1 commit into from
Apr 1, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-refresh (source) ^0.12.0 -> ^0.14.0 age adoption passing confidence

Release Notes

facebook/react

v0.14.0

Compare Source

Major changes
  • Split the main react package into two: react and react-dom. This paves the way to writing components that can be shared between the web version of React and React Native. This means you will need to include both files and some functions have been moved from React to ReactDOM.
  • Addons have been moved to separate packages (react-addons-clone-with-props, react-addons-create-fragment, react-addons-css-transition-group, react-addons-linked-state-mixin, react-addons-perf, react-addons-pure-render-mixin, react-addons-shallow-compare, react-addons-test-utils, react-addons-transition-group, react-addons-update, ReactDOM.unstable_batchedUpdates).
  • Stateless functional components - React components were previously created using React.createClass or using ES6 classes. This release adds a new syntax where a user defines a single stateless render function (with one parameter: props) which returns a JSX element, and this function may be used as a component.
  • Refs to DOM components as the DOM node itself. Previously the only useful thing you can do with a DOM component is call getDOMNode() to get the underlying DOM node. Starting with this release, a ref to a DOM component is the actual DOM node. Note that refs to custom (user-defined) components work exactly as before; only the built-in DOM components are affected by this change.
Breaking changes
  • React.initializeTouchEvents is no longer necessary and has been removed completely. Touch events now work automatically.
  • Add-Ons: Due to the DOM node refs change mentioned above, TestUtils.findAllInRenderedTree and related helpers are no longer able to take a DOM component, only a custom component.
  • The props object is now frozen, so mutating props after creating a component element is no longer supported. In most cases, React.cloneElement should be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.
  • Plain objects are no longer supported as React children; arrays should be used instead. You can use the createFragment helper to migrate, which now returns an array.
  • Add-Ons: classSet has been removed. Use classnames instead.
  • Web components (custom elements) now use native property names. Eg: class instead of className.
Deprecations
  • this.getDOMNode() is now deprecated and ReactDOM.findDOMNode(this) can be used instead. Note that in the common case, findDOMNode is now unnecessary since a ref to the DOM component is now the actual DOM node.
  • setProps and replaceProps are now deprecated. Instead, call ReactDOM.render again at the top level with the new props.
  • ES6 component classes must now extend React.Component in order to enable stateless function components. The ES3 module pattern will continue to work.
  • Reusing and mutating a style object between renders has been deprecated. This mirrors our change to freeze the props object.
  • Add-Ons: cloneWithProps is now deprecated. Use React.cloneElement instead (unlike cloneWithProps, cloneElement does not merge className or style automatically; you can merge them manually if needed).
  • Add-Ons: To improve reliability, CSSTransitionGroup will no longer listen to transition events. Instead, you should specify transition durations manually using props such as transitionEnterTimeout={500}.
Notable enhancements
  • Added React.Children.toArray which takes a nested children object and returns a flat array with keys assigned to each child. This helper makes it easier to manipulate collections of children in your render methods, especially if you want to reorder or slice this.props.children before passing it down. In addition, React.Children.map now returns plain arrays too.
  • React uses console.error instead of console.warn for warnings so that browsers show a full stack trace in the console. (Our warnings appear when you use patterns that will break in future releases and for code that is likely to behave unexpectedly, so we do consider our warnings to be “must-fix” errors.)
  • Previously, including untrusted objects as React children could result in an XSS security vulnerability. This problem should be avoided by properly validating input at the application layer and by never passing untrusted objects around your application code. As an additional layer of protection, React now tags elements with a specific ES2015 (ES6) Symbol in browsers that support it, in order to ensure that React never considers untrusted JSON to be a valid element. If this extra security protection is important to you, you should add a Symbol polyfill for older browsers, such as the one included by Babel’s polyfill.
  • When possible, React DOM now generates XHTML-compatible markup.
  • React DOM now supports these standard HTML attributes: capture, challenge, inputMode, is, keyParams, keyType, minLength, summary, wrap. It also now supports these non-standard attributes: autoSave, results, security.
  • React DOM now supports these SVG attributes, which render into namespaced attributes: xlinkActuate, xlinkArcrole, xlinkHref, xlinkRole, xlinkShow, xlinkTitle, xlinkType, xmlBase, xmlLang, xmlSpace.
  • The image SVG tag is now supported by React DOM.
  • In React DOM, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an is="..." attribute).
  • React DOM now supports these media events on audio and video tags: onAbort, onCanPlay, onCanPlayThrough, onDurationChange, onEmptied, onEncrypted, onEnded, onError, onLoadedData, onLoadedMetadata, onLoadStart, onPause, onPlay, onPlaying, onProgress, onRateChange, onSeeked, onSeeking, onStalled, onSuspend, onTimeUpdate, onVolumeChange, onWaiting.
  • Many small performance improvements have been made.
  • Many warnings show more context than before.
  • Add-Ons: A shallowCompare add-on has been added as a migration path for PureRenderMixin in ES6 classes.
  • Add-Ons: CSSTransitionGroup can now use custom class names instead of appending -enter-active or similar to the transition name.
New helpful warnings
  • React DOM now warns you when nesting HTML elements invalidly, which helps you avoid surprising errors during updates.
  • Passing document.body directly as the container to ReactDOM.render now gives a warning as doing so can cause problems with browser extensions that modify the DOM.
  • Using multiple instances of React together is not supported, so we now warn when we detect this case to help you avoid running into the resulting problems.
Notable bug fixes
  • Click events are handled by React DOM more reliably in mobile browsers, particularly in Mobile Safari.
  • SVG elements are created with the correct namespace in more cases.
  • React DOM now renders <option> elements with multiple text children properly and renders <select> elements on the server with the correct option selected.
  • When two separate copies of React add nodes to the same document (including when a browser extension uses React), React DOM tries harder not to throw exceptions during event handling.
  • Using non-lowercase HTML tag names in React DOM (e.g., React.createElement('DIV')) no longer causes problems, though we continue to recommend lowercase for consistency with the JSX tag name convention (lowercase names refer to built-in components, capitalized names refer to custom components).
  • React DOM understands that these CSS properties are unitless and does not append “px” to their values: animationIterationCount, boxOrdinalGroup, flexOrder, tabSize, stopOpacity.
  • Add-Ons: When using the test utils, Simulate.mouseEnter and Simulate.mouseLeave now work.
  • Add-Ons: ReactTransitionGroup now correctly handles multiple nodes being removed simultaneously.
React Tools / Babel
Breaking Changes
  • The react-tools package and JSXTransformer.js browser file have been deprecated. You can continue using version 0.13.3 of both, but we no longer support them and recommend migrating to Babel, which has built-in support for React and JSX.
New Features
  • Babel 5.8.24 introduces Inlining React elements: The optimisation.react.inlineElements transform converts JSX elements to object literals like {type: 'div', props: ...} instead of calls to React.createElement. This should only be enabled in production, since it disables some development warnings/checks.
  • Babel 5.8.24 introduces Constant hoisting for React elements: The optimisation.react.constantElements transform hoists element creation to the top level for subtrees that are fully static, which reduces calls to React.createElement and the resulting allocations. More importantly, it tells React that the subtree hasn’t changed so React can completely skip it when reconciling. This should only be enabled in production, since it disables some development warnings/checks.

v0.13.0

Compare Source

React Core
Breaking Changes
  • Deprecated patterns that warned in 0.12 no longer work: most prominently, calling component classes without using JSX or React.createElement and using non-component functions with JSX or createElement
  • Mutating props after an element is created is deprecated and will cause warnings in development mode; future versions of React will incorporate performance optimizations assuming that props aren't mutated
  • Static methods (defined in statics) are no longer autobound to the component class
  • ref resolution order has changed slightly such that a ref to a component is available immediately after its componentDidMount method is called; this change should be observable only if your component calls a parent component's callback within your componentDidMount, which is an anti-pattern and should be avoided regardless
  • Calls to setState in life-cycle methods are now always batched and therefore asynchronous. Previously the first call on the first mount was synchronous.
  • setState and forceUpdate on an unmounted component now warns instead of throwing. That avoids a possible race condition with Promises.
  • Access to most internal properties has been completely removed, including this._pendingState and this._rootNodeID.
New Features
  • Support for using ES6 classes to build React components; see the v0.13.0 beta 1 notes for details.
  • Added new top-level API React.findDOMNode(component), which should be used in place of component.getDOMNode(). The base class for ES6-based components will not have getDOMNode. This change will enable some more patterns moving forward.
  • Added a new top-level API React.cloneElement(el, props) for making copies of React elements – see the v0.13 RC2 notes for more details.
  • New ref style, allowing a callback to be used in place of a name: <Photo ref={(c) => this._photo = c} /> allows you to reference the component with this._photo (as opposed to ref="photo" which gives this.refs.photo).
  • this.setState() can now take a function as the first argument for transactional state updates, such as this.setState((state, props) => ({count: state.count + 1})); – this means that you no longer need to use this._pendingState, which is now gone.
  • Support for iterators and immutable-js sequences as children.
Deprecations
  • ComponentClass.type is deprecated. Just use ComponentClass (usually as element.type === ComponentClass).
  • Some methods that are available on createClass-based components are removed or deprecated from ES6 classes (getDOMNode, replaceState, isMounted, setProps, replaceProps).
React with Add-Ons
New Features
Deprecations
  • React.addons.classSet is now deprecated. This functionality can be replaced with several freely available modules. classnames is one such module.
  • Calls to React.addons.cloneWithProps can be migrated to use React.cloneElement instead – make sure to merge style and className manually if desired.
React Tools
Breaking Changes
  • When transforming ES6 syntax, class methods are no longer enumerable by default, which requires Object.defineProperty; if you support browsers such as IE8, you can pass --target es3 to mirror the old behavior
New Features
  • --target option is available on the jsx command, allowing users to specify and ECMAScript version to target.
    • es5 is the default.
    • es3 restores the previous default behavior. An additional transform is added here to ensure the use of reserved words as properties is safe (eg this.static will become this['static'] for IE8 compatibility).
  • The transform for the call spread operator has also been enabled.
JSXTransformer
Breaking Changes
  • The return value of transform now contains sourceMap as a JS object already, not an instance of SourceMapGenerator.
JSX
Breaking Changes
  • A change was made to how some JSX was parsed, specifically around the use of > or } when inside an element. Previously it would be treated as a string but now it will be treated as a parse error. The jsx_orphaned_brackets_transformer package on npm can be used to find and fix potential issues in your JSX code.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@SunLxy SunLxy merged commit 73e7ade into master Apr 1, 2023
@SunLxy SunLxy deleted the renovate/react-monorepo branch April 1, 2023 11:12
ChenlingasMx added a commit that referenced this pull request Jun 9, 2023
* chore: update workflows config.

* chore: update workflows config.

* fix(deps): update dependency classnames to v2.3.2 (#190)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix:修复预览标签

* feat:添加basic案例

* fix:添加布局案例

* ci:update ci

* fix:修复 umi setup

* ci:update ci

* fix:修复案例包版本

* doc:更新文档

* fix(user-login):修改登录组件

* fix(deps): update dependency @ant-design/icons to v5 (#205)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency antd to v5.3.3 (#201)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react-router monorepo to ~6.10.0 (#202)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency husky to v8.0.3 (#199)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency lerna to v6.6.1 (#203)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency prettier to v2.8.7 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency react-intl to ~6.3.0 (#208)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency jest-environment-jsdom to v29 (#206)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency compile-less-cli to v1.8.14 (#207)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency lint-staged to ~13.2.0 (#204)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency react-frame-component to v5.2.6 (#200)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* type:修复类型

* ci:update  ci

* type:修改类型

* doc:更新文档

* fix:修改案例依赖

* fix:修复表单设置初始隐藏表单项

* fix:修复本地文档预览网站

* doc:更新文档

* fix:更新文档预览

* doc(user-login):更新文档预览

* doc:更新文档

* ci:update ci

* fix:使用异步加载文档

* doc:更新文档

* chore:update tsbb@4

* released v2.0.0-bate.5

* chore(deps): update dependency react-refresh to ^0.14.0 (#212)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix:修改文档预览主题色

* feat(authorized):添加AuthorizedConfigProvider和useAuthorizedonfig

* type:修复类型

* released v2.0.0-bate.5

* fix:修复文档和权限取值判断

* released v2.0.0

* doc(User-Login): API文档

* doc(Basic-Layouts): api文档修改

* doc(antdp-ui): 组件api文档

* fix(doc): 调整Edit-table api文档

* doc(EditTable): 增加使用案例

* doc(EditTable): 处理文档报错

* fix: 修改文档菜单以及路由

* doc: 增加升级文档 & 更新日志文档

* chore(deps): update dependency react-intl to ~6.4.0 (#214)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency antd to v5.4.2 (#213)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency rc-field-form to ~1.29.0 (#210)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: update base antd to v5.4.2

* fix: 修复文档控件明暗主题色切换

* doc: 增加更新日志

* fix(website): 调整文档header组件样式

* fix: 删除layout header 没有使用的组件

* doc: 增加新增页面文档

* doc: 新增网络请求文档

* fix(basic-layouts): 修复Breadcrumb中Breadcrumb.Item 替换为 items

* doc: 增加proxy文档

* doc: 更新请求文档

* doc: 多级时路由不再跳转

* doc: 增加umi文档菜单

* dep(@antdp/hooks): 新增react-query

* released v2.0.1

* fix: 处理ci报错

* doc: 处理预实例报错

* doc: 更新日志v2.0.1

* doc(change-log): Update README.md

* doc(change-log): Update README.md

* doc: 更新日志删除不必要信息

* doc: 调整文档顶部菜单高度和边距

* deps(@antdp/hooks): 导出fetchFn

* deps(basic-layouts): 增加菜单搜索功能

* doc: 增加react-query请求相应文档

* doc: 增加样式文档

* doc: Update README.md

* doc: 修改快速开始文档

* doc: 修改新增页面文档

* doc: 修改请求和样式文档

* doc: 增加mock文档

* doc: 增加数据流文档

* doc: 实例预览删除多余路由页面

* fix: 修复实例路由报错 & basic yarn报错

* fix: 默认开启react-query

* released v2.0.2

* fix: 增加如何创建js项目

* doc: 增加国际化文档

* doc: 快速开始增加js项目创建方法

* doc: 增加dva文档

* fix: 增加快速开始进入目录提示

* doc: 增加权限文档

* doc: 增加dva配图

* doc: 修改配置文档

* doc: 增加basic实例预览

* doc: 删除页面开发菜单图标

* fix: 菜单研发更改为页面开发

* doc: 增加实例预览

* fix: 修改实例预览路径

* doc: 在线实例增加列表页和组件页

* doc: 在线预览实例增加表格列表页

* doc: 添加成功页和失败页 (#220)

* doc: (预览实例)详情表单页

* doc: 修改v1-v2 umi文档地址错误

* doc: 在线文档替换为kktpro

* fix: 提交忽略.kktp文件

* doc: 添加个人中心和个人设置 (#221)

* doc: 添加成功页和失败页

* doc: 添加个人中心和个人设置

* fix: 修复ci 报错

* fix: 删除.kktp文件

* fix: 禁止上传.kktp文件

* fix: 处理ci报错

* doc: 处理在线文档报错

* fix: 修复在线预览文档报错

* doc: 在线文档首页

* doc: 修改文档首页样式

* fix: 增加ts项目转换js项目命令

* fix: 修复生成ts项目脚本报错

* fix: 修复ci报错

* fix: 修复ci报错

* fix: 修复ci报错

* fix: 删除antdp-example & 预览实例加载antdp-base

* fix: 修改antdp-example名字为antdp-base

* doc: 首页样式修改

* doc: 预览文档tabbar修改

* doc: 文档首页调整

* doc: 修改首页样式

* doc:添加图表页 (#224)

* doc: 添加成功页和失败页

* doc: 添加个人中心和个人设置

* doc:添加图表页

* doc:添加图表页

* doc:添加基础详情页和高级详情页

* fix: 修复在线预览缺少图表依赖

* fix: 固定antd版本

* doc: QuickForm 增加antd Form链接

* fix: antdp-base固定antd版本

* style: 首页高分辨率下出现空白 (#226)

* doc: 修改首页样式

* fix: ButtongroupPro 增加权限功能

* released v2.0.3

* fix: ButtonGroupPro menu菜单修改antd去除的api & 兼容按钮权限

* released v2.0.4

* doc: 增加2.0.3 & 2.0.4更新文档

* fix(deps): update dependency rc-field-form to ~1.30.0 (#217)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency prettier to v2.8.8 (#216)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency lerna to v6.6.2 (#225)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ~18.2.0 (#218)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react-router monorepo to ~6.11.0 (#223)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency antd to v5.4.7 (#215)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* deps:  update dependency recursive-readdir-files to v2

* fix: 修复@antdp/request token设置错误

* releasedv2.0.5

* fix: 修复ButtonGroupPro padding过大

* released v2.0.6

* fix: layout-tabs兼容react-router-dom v6 & 处理切换选项卡重复渲染页面问题

* fix: 增加监听@antdp/request

* released v2.0.7

* fix: 修 复无菜单权限,跳往403页面不刷 新

* released v2.0.8

* fix: 修复搜索菜单父级隐藏仍能搜索到子级

* released v2.0.9

* fix: fix internatization console warning.

* fix: 修复message报错

* released v2.0.10

* fix: 修复basic-layouts包裹App超屏

* released v2.0.11

* fix: 全局包 裹antd App

* released v2.0.12

* style(layout): 修改布局样式增加背景色 (#232)

Co-authored-by: shenzhiqing <[email protected]>

* fix: basic-layouts修改头部样式

* released v2.0.13

* fix: 处理ci报错

* fix: 升级kktp

* fix: 修复npm install报错

* chore:升级依赖

* fix: basic-layouts 可以收起展开

* chore:update @kkt/pro

* released v.2.0.14

* fix: basic-layouts 修改侧边菜单栏阴影色

* released v2.0.14

* fix: config增加ANTD_MENU_SLIDER& basic-layouts增加左侧菜单栏布局

* fix: basic-layouts 增加暗白颜色 & 支持antd config配置

* fix: website首页增加案例

* fix(layoutmenu): 修改侧边菜单栏最后一个菜单被遮挡的问题 (#234)

Co-authored-by: shenzhiqing <[email protected]>

* released v2.0.16

* fix: basic-layouts 页面适应dark light配色

* doc(bsaic-layouts): 更新README

* fix: antdp-base 增加ProList试例

* fix: 修复路由没权限跳转报错问题 (#235)

* style: 首页高分辨率下出现空白

* fix: 修复路由没权限跳转报错问题

* docs: Update README.md

* fix(deps): update dependency lerna to v7 #237

* fix: antdp-base登陆修改为pro-component组件

* 组件菜单组件名错误 #246~

* yarn install 项目报错,提示node版本号不对,文档没及时更新依赖说明 #238

* fix:  初始化js项目,有tsconfig.json文件 #239

* fix: basic增加 custom.d.ts 处理svg引用ts类型报错

* fix: 增加实例预览2

* fix: 增加实例预览3

* fix: 更换首页图片

* doc: 修改新增菜单和权限文档

* doc: config组件添加文档说明

---------

Co-authored-by: jaywcjlove <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: SunLxy <[email protected]>
Co-authored-by: WX <[email protected]>
Co-authored-by: panbibi <[email protected]>
Co-authored-by: WmW <[email protected]>
Co-authored-by: star-hamster <[email protected]>
Co-authored-by: shenzhiqing <[email protected]>
Co-authored-by: admin <[email protected]>
Co-authored-by: xyf <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant