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

Translation of blog post: "2019-08-08-react-v16.9.0" #307

Closed
wants to merge 1 commit into from
Closed

Translation of blog post: "2019-08-08-react-v16.9.0" #307

wants to merge 1 commit into from

Conversation

jhonmike
Copy link
Member

@jhonmike jhonmike commented Aug 27, 2019

Migrado para #317

Motivo: Por N motivos tive que recriar meu fork, perdendo a referência dessa branch.

@jhonmike jhonmike added needs review A pull request ready to be reviewed blog Blog post translation labels Aug 27, 2019
@jhonmike jhonmike self-assigned this Aug 27, 2019
@netlify
Copy link

netlify bot commented Aug 27, 2019

Deploy preview for pt-br-reactjs ready!

Built with commit b56297e

https://deploy-preview-307--pt-br-reactjs.netlify.com

Copy link
Member

@jcserracampos jcserracampos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não sei o porquê, mas não apareceu para eu sugerir as edições diretamente.

author: [gaearon, bvaughn]
---

Today we are releasing React 16.9. It contains several new features, bugfixes, and new deprecation warnings to help prepare for a future major release.
Hoje estamos lançando o React 16.9. Ele contém vários novos recursos, correções de bugs e novos avisos de descontinuação para ajudar a se preparar para uma futura versão major.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Levantar um debate aqui: Depreciação não é uma palavra mais utilizada para funcionalidades que vão deixar de funcionar?

npx react-codemod rename-unsafe-lifecycles
```

*(Note that it says `npx`, not `npm`. `npx` is a utility that comes with Node 6+ by default.)*
*(Note queele diz `npx`, nãp `npm`. `npx` é um utilitário que vem com Node 6+ por padrão.)*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Note que ele diz npx, não npm. npx é um utilitário que vem com Node 6+ por padrão.)


The new names like `UNSAFE_componentWillMount` **will keep working in both React 16.9 and in React 17.x**. However, the new `UNSAFE_` prefix will help components with problematic patterns stand out during the code review and debugging sessions. (If you'd like, you can further discourage their use inside your app with the opt-in [Strict Mode](/docs/strict-mode.html).)
Os novos nomes como `UNSAFE_componentWillMount` **irão continuar a trabalhar em ambos React 16.9 e em React 17.x**. No entanto, o novo prefixo `UNSAFE_` ajudará os componentes com padrões problemáticos a se destacarem durante os code review e depuração de código. (Se desejar, você pode desestimular ainda mais o uso dele dentro do seu aplicativo com o [Strict Mode](/docs/strict-mode.html).)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que fica melhor: irão continuar a funcionar


### Deprecating `javascript:` URLs {#deprecating-javascript-urls}
### Depreciado `javascript:` URLs {#deprecating-javascript-urls}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depreciando


**In React 16.9,** this pattern continues to work, but it will log a warning. If you use `javascript:` URLs for logic, try to use React event handlers instead. (As a last resort, you can circumvent the protection with [`dangerouslySetInnerHTML`](/docs/dom-elements.html#dangerouslysetinnerhtml), but it is highly discouraged and often leads to security holes.)
**Em React 16.9,** esse padrão continua a funcionar, mas registrará um aviso. Se você usar `javascript:` na lógica das URLs, tente usar manipuladores de eventos React. (Como último recurso, você pode contornar a proteção [`dangerouslySetInnerHTML`](/docs/dom-elements.html#dangerouslysetinnerhtml), mas é altamente desenvorajado e muitas vezes leva a falhas de segurança.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

altamente desencorajado

* Fix hiding Suspense fallback nodes when there is an `!important` style. ([@acdlite](https://github.com/acdlite) in [#15861](https://github.com/facebook/react/pull/15861) and [#15882](https://github.com/facebook/react/pull/15882))
* Slightly improve hydration performance. ([@bmeurer](https://github.com/bmeurer) in [#15998](https://github.com/facebook/react/pull/15998))
* Descontinuar nomes antigos dos métodos do ciclo de vida para os `UNSAFE_*`. ([@bvaughn](https://github.com/bvaughn) em [#15186](https://github.com/facebook/react/pull/15186) e [@threepointone](https://github.com/threepointone) em [#16103](https://github.com/facebook/react/pull/16103))
* Descontinuar `javascript:` URLs como uma superfície de ataque comum. ([@sebmarkbage](https://github.com/sebmarkbage) em [#15047](https://github.com/facebook/react/pull/15047))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho é no indicativo: Deprecia

* Slightly improve hydration performance. ([@bmeurer](https://github.com/bmeurer) in [#15998](https://github.com/facebook/react/pull/15998))
* Descontinuar nomes antigos dos métodos do ciclo de vida para os `UNSAFE_*`. ([@bvaughn](https://github.com/bvaughn) em [#15186](https://github.com/facebook/react/pull/15186) e [@threepointone](https://github.com/threepointone) em [#16103](https://github.com/facebook/react/pull/16103))
* Descontinuar `javascript:` URLs como uma superfície de ataque comum. ([@sebmarkbage](https://github.com/sebmarkbage) em [#15047](https://github.com/facebook/react/pull/15047))
* Descontinuar componentes incomuns do "module pattern" (factory). ([@sebmarkbage](https://github.com/sebmarkbage) em [#15145](https://github.com/facebook/react/pull/15145))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho é no indicativo: Deprecia

* Descontinuar nomes antigos dos métodos do ciclo de vida para os `UNSAFE_*`. ([@bvaughn](https://github.com/bvaughn) em [#15186](https://github.com/facebook/react/pull/15186) e [@threepointone](https://github.com/threepointone) em [#16103](https://github.com/facebook/react/pull/16103))
* Descontinuar `javascript:` URLs como uma superfície de ataque comum. ([@sebmarkbage](https://github.com/sebmarkbage) em [#15047](https://github.com/facebook/react/pull/15047))
* Descontinuar componentes incomuns do "module pattern" (factory). ([@sebmarkbage](https://github.com/sebmarkbage) em [#15145](https://github.com/facebook/react/pull/15145))
* Adicionado suporte para o atributo `disablePictureInPicture` em `<video>`. ([@eek](https://github.com/eek) em [#15334](https://github.com/facebook/react/pull/15334))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho é no indicativo: Adiciona

Para baixo também

* Adicionado suporte para o evento `onLoad` no `<embed>`. ([@cherniavskii](https://github.com/cherniavskii) em [#15614](https://github.com/facebook/react/pull/15614))
* Adicionado suporte para editar o estado com `useState` no DevTools. ([@bvaughn](https://github.com/bvaughn) em [#14906](https://github.com/facebook/react/pull/14906))
* Adicionado suporte para alterar o Suspense no DevTools. ([@gaearon](https://github.com/gaearon) em [#15232](https://github.com/facebook/react/pull/15232))
* Aviso quando `setState` é chamado no `useEffect`, criando um loop. ([@gaearon](https://github.com/gaearon) em [#15180](https://github.com/facebook/react/pull/15180))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avisa

* Adicionado suporte para editar o estado com `useState` no DevTools. ([@bvaughn](https://github.com/bvaughn) em [#14906](https://github.com/facebook/react/pull/14906))
* Adicionado suporte para alterar o Suspense no DevTools. ([@gaearon](https://github.com/gaearon) em [#15232](https://github.com/facebook/react/pull/15232))
* Aviso quando `setState` é chamado no `useEffect`, criando um loop. ([@gaearon](https://github.com/gaearon) em [#15180](https://github.com/facebook/react/pull/15180))
* Corrigido um vazamento de memória. ([@paulshen](https://github.com/paulshen) em [#16115](https://github.com/facebook/react/pull/16115))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrige

@jhonmike
Copy link
Member Author

jhonmike commented Sep 9, 2019

@jcserracampos... mano eu recriei meu fork por N outros motivos, e essa branch estava no fork antigo, eu vou recriar o PR com a brach correta, vc prefere que eu crie com o source atual e vc recomente as alterações com a sugestão, ouu quer que eu abra o novo PR já com os ajustes?

@jhonmike jhonmike added invalid Something that is outside the scope and removed blog Blog post translation needs review A pull request ready to be reviewed labels Sep 9, 2019
@jhonmike jhonmike closed this Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Something that is outside the scope
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants