Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apostrophe

Package Overview
Dependencies
Maintainers
11
Versions
1081
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe - npm Package Versions

1
109

3.39.1

Diff

Changelog

Source

3.39.1 (2023-02-02)

Fixes

  • Rescaling cropped images with the @apostrophecms/attachment:rescale task now works correctly. Thanks to Waldemar Pankratz for this contribution.
boutell
published 3.39.0 •

Changelog

Source

3.39.0 (2023-02-01)

Adds

  • Basic support for editing tables by adding table to the rich text toolbar. Enabling table allows you to create tables, including td and th tags, with the ability to merge and split cells. For now the table editing UI is basic, all of the functionality is there but we plan to add more conveniences for easy table editing soon. See the "Table" dropdown for actions that are permitted based on the current selection.
  • superscript and subscript may now be added to the rich text widget's toolbar option.
  • Early beta-quality support for adding inline images to rich text, by adding image to the rich text toolbar. This feature works reliably, however the UI is not mature yet. In particular you must search for images by typing part of the title. We will support a proper "browse" experience here soon. For good results you should also configure the imageStyles option. You will also want to style the figure tags produced. See the documentation for more information.
  • Support for div tags in the rich text toolbar, if you choose to include them in styles. This is often necessary for A2 content migration and can potentially be useful in new work when combined with a class if there is no suitable semantic block tag.
  • The new @apostrophecms/attachment:download-all --to=folder command line task is useful to download all of your attachments from an uploadfs backend other than local storage, especially if you do not have a more powerful "sync" utility for that particular storage backend.
  • A new loadingType option can now be set for image-widget when configuring an area field. This sets the loading attribute of the img tag, which can be used to enable lazy loading in most browsers. Thanks to Waldemar Pankratz for this contribution.
  • Two new module-level options have been added to the image-widget module: loadingType and size. These act as fallbacks for the same options at the area level. Thanks to Waldemar Pankratz for this contribution.

Fixes

  • Adding missing require (bluebird) and fallback (file.crops || []) to @apostrophecms/attachment:rescale-task
boutell
published 2.224.0 •

boutell
published 3.38.1 •

Changelog

Source

3.38.1 (2023-01-23)

Fixes

  • Version 3.38.0 introduced a regression that temporarily broke support for user-edited content in locales with names like de-de (note the lowercase country name). This was inadvertently introduced in an effort to improve support for locale fallback when generating static translations of the admin interface. Version 3.38.1 brings back the content that temporarily appeared to be missing for these locales (it was never removed from the database), and also achieves the original goal. However, if you created content for such locales using 3.38.0 (released five days ago) and wish to keep that content, rather than reverting to the content from before 3.38.0, see below.

Adds

  • The new i18n:rename-locale task can be used to move all content from one locale name to another, using the --old and --new options. By default, any duplicate keys for content existing in both locales will stop the process. However you can specify which content to keep in the event of a duplicate key error using the --keep=localename option. Note that the value of --new should match the a locale name that is currently configured for the @apostrophecms/i18n module.

Example:

# If you always had de-de configured as a locale, but created
boutell
published 3.38.0 •

Changelog

Source

a lot of content with Apostrophe 3.38.0 which incorrectly stored

it under de-DE, you can copy that content. In this case we opt

to keep de-de content in the event of any conflicts

node app @apostrophecms/i18n:rename-locale --old=de-DE --new=de-de --keep=de-de

boutell
published 3.37.0 •

Changelog

Source

3.37.0 (2023-01-06)

Adds

  • Dynamic choice functions in schemas now also receive a data object with their original doc id for further inspection by your function.
  • Use mergeWithCustomize when merging extended source Webpack configuration. Introduce overideable asset module methods srcCustomizeArray and srcCustomizeObject, with reasonable default behavior, for fine tuning Webpack config arrays and objects merging. More info - the Webpack mergeWithCustomize docs
  • The image widget now accepts a placeholderImage option that works like previewImage (just specify a file extension, like placeholderImage: 'jpg', and provide the file public/placeholder.jpg in the module). The placeholderUrl option is still available for backwards compatibility.

Fixes

  • docId is now properly passed through array and object fields and into their child schemas.
  • Remove module @apostrophecms/polymorphic-type name alias @apostrophecms/polymorphic. It was causing warnings e.g. A permission.can() call was made with a type that has no manager: @apostrophecms/polymorphic-type.
  • The module webpack.extensions configuration is not applied to the core Admin UI build anymore. This is the correct and intended behavior as explained in the relevant documentation.
  • The previewImage option now works properly for widget modules loaded from npm and those that subclass them. Specifically, the preview image may be provided in the public/ subdirectory of the original module, the project-level configuration of it, or a subclass.
boutell
published 3.36.0 •

Changelog

Source

3.36.0 (2022-12-22)

Adds

  • shortcut option for piece modules, allowing easy re-mapping of the manager command shortcut per module.

Fixes

  • Ensure there are no conflicting command shortcuts for the core modules.
boutell
published 3.35.0 •

Changelog

Source

3.35.0 (2022-12-21)

Adds

  • Introduced support for linking directly to other Apostrophe documents in a rich text widget. The user can choose to link to a URL, or to a page. Linking to various piece types can also be enabled with the linkWithType option. This is equivalent to the old apostrophe-rich-text-permalinks module but is included in the core in A3. See the documentation for details.
  • Introduced support for the anchor toolbar control in the rich text editor. This allows named anchors to be inserted. These are rendered as span tags with the given id and can then be linked to via #id, providing basic support for internal links. HTML 4-style named anchors in legacy content (name on a tags) are automatically migrated upon first edit.
  • German translation i18n file created for the Apostrophe Admin-UI. Thanks to Noah Gysin for this contribution.
  • Introduced support for keyboard shortcuts in admin UI. Hitting ? will display the list of available shortcuts. Developpers can define their own shortcuts by using the new @apostrophecms/command-menu module and the commands property. Please check the keyboard shortcut documentation for more details.

Fixes

  • The bulletList and orderedList TipTap toolbar items now work as expected.
  • When using the autocomplete/typeahead feature of relationship fields, typing a space at the start no longer results in an error.
  • Replace credential package with credentials to fix the mout Prototype Pollution vulnerability. There was no actual vulnerability in Apostrophe or credential due to the way the module was actually used, and this was done to address vulnerability scan reports.
  • Added a basic implementation of the missing "Paste from Clipboard" option to Expanded Widget Previews.
boutell
published 2.223.1 •

boutell
published 3.34.0 •

Changelog

Source

3.34.0 (2022-12-12)

Fixes

  • Nested areas work properly in widgets that have the initialModal: false property.
  • Apostrophe's search index now properly incorporates most string field types as in A2.

Adds

  • Relationships load more quickly.
  • Parked page checks at startup are faster.
  • Tasks to localize and unlocalize piece type content (see node app help [yourModuleName]:localize and node app help [yourModuleName]:unlocalize).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc