Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@atlaskit/editor-prosemirror
Advanced tools
Package to group all prosemirror libraries in a single place
Package to group all prosemirror libraries in a single place
import EditorProsemirror from '@atlaskit/editor-prosemirror';
Detailed docs and example usage can be found here.
There are some codemods to help the migration. But, they are supposed to run only once and manual in the AFE repo.
This one is reponsible to replace all prosemirror libraries usage with the new package e.g.:
// before
import { DecorationSet } from 'prosemirror-view';
// after
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
Run this script below
npx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx --transform packages/editor/editor-prosemirror/codemods/optimistic-next-editor-prosemirror-usage/ packages
If you are getting this kind of error below:
import { Binding, NodePath, Scope } from '@babel/traverse';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at compileFunction (<anonymous>)
at Object.compileFunction (node:vm:360:18)
Remove the token babel plugin from the babel.config.shared.js
file.
// file: babel.config.shared.js
/** This override runs the tokens babel plugin on converted packages */
{
test: ['packages/'],
// exclude plugin when building itself, or the tokens package it depends on
exclude: [
'packages/monorepo-tooling',
'packages/design-system/tokens',
'packages/design-system/eslint-plugin',
'packages/design-system/storybook-addon',
'packages/platform/feature-flags-codemods',
],
plugins: [
// Comment out this block
//[
// './packages/design-system/tokens/babel-plugin',
// {
// shouldUseAutoFallback: true,
// },
//],
],
},
FAQs
Package to group all prosemirror libraries in a single place
The npm package @atlaskit/editor-prosemirror receives a total of 26,422 weekly downloads. As such, @atlaskit/editor-prosemirror popularity was classified as popular.
We found that @atlaskit/editor-prosemirror demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.