Skip to main content
Version: 2.0.0-alpha

Changelog

[2.0.0-alpha] - 2021-12-13‚Äč

General‚Äč

Internally replaced react-base-table with a custom implementation of the editable table. This means a big enhancement in performance

Collections‚Äč

Collections and entity schemas have been merged into one single concept. All the fields related to entity schemas have been moved to the collection level. We felt it was redundant and the distribution of logic between those 2 concepts was a bit arbitrary.

Entities‚Äč

Now you don't need to save an entity to use its id (e.g. in storage callbacks). The side dialog does not get closed automatically on save.

[1.0.1] - 2022-06-02‚Äč

Changed‚Äč

  • Fix for bug when saving new entities with React 18.

[1.0.0] - 2022-05-10‚Äč

Changed‚Äč

  • Fix for entity collections in read-only mode showing incorrect resolved properties
  • Fix for filter combinations bug

Added‚Äč

  • Enabled phone authentication
  • Added max size validation for file uploads

[1.0.0-rc.5] - 2022-04-11‚Äč

Changed‚Äč

  • Fix for draggable bug in arrays with duplicated values.
  • Reversed icons in header tables. Also, now the initial sort option is "asc" as it is typical in most apps.
  • Fix for cursor jumping to the end of an inline text field

[1.0.0-rc.4] - 2022-03-14‚Äč

Changed‚Äč

  • Added LoginViewProps to FirebaseCMSApp. You can use it to customise the login flow, using the disableSignupScreen prop to prevent users from creating accounts in password mode. And to display a NoUserComponent
  • when the user logging in password mode is not found
  • Fix for hidden CMS views bug.
  • Fix for array select filters
  • Fixed inline date popups
  • Fix for not editable tables not updating on data changes

[1.0.0-rc.3] - 2022-02-28‚Äč

Changed‚Äč

  • Fixed edge case of references in arrays not being resolved properly with property builders. Thanks, Paul Aranzamendez!

[1.0.0-rc.2] - 2022-02-08‚Äč

Changed‚Äč

  • Fix for Portal import bug related to mui 5.4 version.
  • Allowing optional custom ids
  • Small cosmetic updates

[1.0.0-rc.1] - 2022-01-23‚Äč

Changed‚Äč

  • Fix for "heap limit Allocation failed" error

[1.0.0-beta11] - 2022-01-22‚Äč

Changed‚Äč

  • Fix for array components losing focus
  • Added custom regexMessage for displaying when there is a string regex validation error.
  • Property builders now include the previousValues prop, in case you need to compare the updates with the original values (only in the form view and the popup view in the collection).
  • Changed page not found error message.

[1.0.0-beta10] - 2022-01-11‚Äč

Changed‚Äč

  • Drag and drop implementation replaced for react-beautiful-dnd, for simpler code and better performance.
  • Fix callbacks to open side panel, (by Kyle Fang)
  • Fix for latest version of react-router types
  • General dependencies update
  • Many internal React eslint warning fixes

[1.0.0-beta9] - 2021-12-17‚Äč

Added‚Äč

  • Optional dependencies prop in AdditionalColumnDelegate so that additional columns are always up-to-date when they depend on another entity property. Just pass an array of property keys

Changed‚Äč

  • Many performance enhancements, related to avoiding re-renders, especially in the entity collection view table cells.
  • Fix for popup form field in the collection view, not displaying the correct field in some occasions.

[1.0.0-beta8] - 2021-12-13‚Äč

Added‚Äč

  • Fix for side dialog not opening when creating a new entity
  • Performance tweaks

Changed‚Äč

  • useSchemaRegistry has been removed and all it's functionality has been merged into useNavigationContext

[1.0.0-beta7] - 2021-12-11‚Äč

Added‚Äč

  • Not found page when reaching a non-existing route.
  • Indicator for selected page in navigation drawer
  • Some performance enhancements

Changed‚Äč

  • Fix for missing index.js export in version beta6
  • Internal rework for persisting user configuration, like collection sizes or column widths.

[1.0.0-beta6] - 2021-12-06‚Äč

Added‚Äč

  • New custom login screen that replaces FirebaseUi.
  • Replaced react-csv with custom CSV implementation
  • The previous changes were blocking SSR and build tools such as Vite, but more testing is needed.
  • New type added EntitySchemaResolver, used mostly internally for resolving entity schemas (that means computing the property builders and transforming them to a ResolvedEntitySchema)

Changed‚Äč

  • Fix for collections not refreshing correctly
  • [BREAKING] schemaResolver at the FireCMS level has been renamed to schemaOverrideHandler.

[1.0.0-beta5] - 2021-11-22‚Äč

Added‚Äč

  • snackbarController added to FireCMSContext so it can be used in callbacks.
  • width parameter added to SideEntityController's open function, so you can select the width of the side view.
  • The user selection regarding dark mode is now persisted in local storage (if different from the system selection)

Changed‚Äč

  • Fix for data not being refreshed correctly in collections.

[1.0.0-beta4] - 2021-11-14‚Äč

Added‚Äč

  • Added additional props to NavigationBuilder and Authenticator, including dataSource and storageSource. These are useful if you need to fetch some data from your datasource (such as if you want to check if a logged user has an entry in Firestore) and apply the corresponding permissions or navigation.
  • Added SelectionController to EntityCollectionView. You can use useSelectionController and pass it your custom EntityCollectionView if you want to control the selected entities. If you are using FirebaseCMSApp as an entry point, you can define your Autheticator as:
import { User as FirebaseUser } from "firebase/auth";
const myAuthenticator: Authenticator<FirebaseUser> = async ({
user,
authController
}) => {
console.log("Allowing access to", user?.email);
// ...
return true;
};
  • Implemented dark mode for markdown fields
  • Column sizes and collections tables are now persisted in local storage

Changed‚Äč

  • The User types have been replaced by generics all through the app. Types like AuthController or NavigationBuilder now have a generic argument that allows to define the user type. In the case of
  • Internal work around to prevent collections going back to the start due to Firestore returning incomplete collection data.
  • [BREAKING] useCollectionFetch now uses sortBy in the format [Extract<keyof M, string>, "asc" | "desc"] for consistency
  • [BREAKING] extraActions in EntityCollection now receives selectionController instead of selectedEntities.
  • Fix for filters in tables including enumValues

[1.0.0-beta3] - 2021-11-07‚Äč

Changed‚Äč

  • EntityCollectionTable has been renamed to EntityCollectionView
  • Reference visual fix 144
  • Removed entityId to PropertyBuilder when copying an entity 145
  • Fix and reimplemented navigation blocking behaviour 146
  • Hiding correctly hidden properties if they are in a `MapProperty

Added‚Äč

  • New Table component used internally by CollectionTable. Table is not coupled with our entities and collections models and can be used as a single component. It includes generic sorting and filtering capabilities.

[1.0.0-beta2] - 2021-10-07‚Äč

Changed‚Äč

  • When copying an entity the permission used is create now, instead of edit.
  • Fix for entities not being saved when new or copy was clicked
  • Fix for multiple delete keeping old state.
  • Fix multiple form styles.
  • Fix for array of number enums.

Added‚Äč

Added hidden configuration to disabled fields:

buildProperty({
dataType: "string",
title: "Hidden field",
disabled: {
hidden: true
}
})

[1.0.0-beta1] - 2021-10-01‚Äč

Many breaking changes in this version unfortunately, but it's for the better! We have done a lot of internal refactorings with the primary goal of making internal and external APIs more predictable and consistent.

You can find a list of all the changes and help in Migrating from alpha versions

[0.50.0] - 2021-08-15‚Äč

Changed‚Äč

  • Added post process to storage metadata. @zhigang1992 thanks!
  • Disabling add button on disabled array properties

[0.49.1] - 2021-08-15‚Äč

Changed‚Äč

  • Fix for broken custom entity views and new entities.

[0.49.0] - 2021-08-13‚Äč

Changed‚Äč

[BREAKING] Big types refactor. This only affects you if you use Typescript.

All the key signatures affecting schemas (EntitySchema and related) have changed from EntitySchema<Key extends string = string> to EntitySchema<M> where M is simply your model, though you can omit it.

You are now encouraged to define your model like:

type Product = {
name: string;
price: number;
}
const productSchema = buildSchema<Product>({
// ...
properties: {
name: {
dataType: "string",
// ...
},
// ...
}
// ...
});

If you would still like to use inferred types from schemas using something like typeof productSchema, you can still do it if you wrap it in a new type InferSchemaType, but this is not encouraged. In the previous example InferSchemaType<typeOf productSchema> is the same type as Product.

Related changes:

  • Wherever you had defined your own schema, using buildSchema() and where using that as a type parameter, it can be changed to the defined type or just removed.
  • buildSchemaFrom has been deleted since now it's identical to buildSchema

If you need more info: https://firecms.co/blog/types_refactor

[0.48.0] - 2021-08-13‚Äč

Changed‚Äč

  • Fix for changes in forms not updating correctly when a real time update happened in Firestore
  • Fix for popup view position
  • Fix for popup view validating only the corresponding cell and not the whole property, which was provoking unfixable saving errors.

[0.47.0] - 2021-08-10‚Äč

Changed‚Äč

  • [BREAKING] EntityCustomViewBuilder has been renamed to EntityCustomView
  • Big form performance enhancements
  • Fixes related to oneOf array properties.
  • Fixed missing permission error in cell
  • Added collectionPath to PropertyBuilder

[0.46.0] - 2021-08-02‚Äč

Added‚Äč

  • collectionPath and context to ExtraActionsParams
  • Green border indicator on collection tables to indicate that the value was saved successfully in Firestore.

[0.45.0] - 2021-07-19‚Äč

Added‚Äč

  • New oneOf field in ArrayProperty. This new configuration allows the user to build complex array of objects structures, where the object is determined by a discriminator or type field and stored in the value field (both those fields are customizable). You can se an example of this in the content of blog entries in the demo
  • You can now add custom views to your entity schemas, that get rendered next to the entity form. You can use these views for anything you need, such as rendering a custom form, building a dashboard or displaying a post preview.
  • The collectionPath and app context props have been added to PermissionBuilder so you can get better info of the context of an entity.

Changed‚Äč

  • Subcollection views and new schema custom views are now displayed side by side when you open the tabs in the side view (useful for better context switching)
  • The markdown component has been replaced by a better one.
  • Many bugfixes in the form popup view and enhanced behaviour. You can now keep a popup open and continue editing other fields. The popup doesn't close automatically now when you click on a different cell.

[0.44.0] - 2021-07-19‚Äč

Changed‚Äč

  • [BREAKING] renamed useAuthContext to useAuthController
  • Including authController in PermissionBuilder so you can access additional data for a user.
  • Improved sample code and quickstart to include custom user logic

[0.43.0] - 2021-07-06‚Äč

Changed‚Äč

  • Filtering in collections has been changed from a single dropdown to dropdowns in each column header.
  • Added Timestamp filters
  • filterableProperties has no longer effect since every field is filterable now and will be removed in the future.

Added‚Äč

  • indexes property where you can specify the indexes in your Firestore configuration. That allows to filter/sort by multiple properties.

[0.42.0] - 2021-06-22‚Äč

Changed‚Äč

  • Big internal refactor to have a better modularised code, also to generate better docs
  • [BREAKING] EntityCollectionView (previously renamed to EntityCollection) has been removed. Simply rename to EntityCollection

[0.41.1] - 2021-06-22‚Äč

Changed‚Äč

  • Fix for export component that was fetching the complete collections on mount. Now opening the CMS does not trigger excessive reads by default.

[0.41.0] - 2021-06-19‚Äč

Changed‚Äč

  • Internal type fixes.
  • [BREAKING] ArrayProperty first generic type changed from T to T[]
  • [BREAKING] CMSFormField component (used for generating custom fields) has been replaced by a function called buildPropertyField that takes the same props
  • Fix for jumping search bar while loading

[0.40.0] - 2021-06-06‚Äč

Changed‚Äč

  • [BREAKING] Change EntityStatus from JS enum to TS type. This only affects you if you are using a save callback.
  • [BREAKING] AlgoliaTextSearchDelegate is now a function instead of a class. You instantiate it the same, just remove the new keyword

[0.39.1] - 2021-05-23‚Äč

Added‚Äč

  • Added extra and setExtra fields in authController to store custom user data.

Changed‚Äč

  • Fix for home page
  • Minor layout updates
  • Removed authResult from auth context since it was actually useless and confusing

[0.39.0] - 2021-05-13‚Äč

Added‚Äč

  • Allowing adding customized columns to CSV exports
  • Added builder
  • Allowing changing pagination size
  • Allowing multiple paths per CMSView and hideFromNavigation flag added

Changed‚Äč

  • [BREAKING] Material dependencies have been moved to peerDependencies If your build breaks, simply add these dependencies to your project:
"@mui/material": "^4.11.4",
"@mui/icons-material": "^4.11.2",
"@mui/lab": "^4.0.0-alpha.58",
"@material-ui/pickers": "^3.3.10",

[0.38.2] - 2021-05-05‚Äč

Changed‚Äč

  • Custom id values are now trimmed
  • Fix for entity actions dropdown
  • Fix for being able to use side entity dialogs without having a rendered main view
  • [BREAKING] If you are using provider and main view, you need to move the theme related fields from the main view to the provider (colors and fonts)

[0.38.1] - 2021-05-03‚Äč

Changed‚Äč

  • Fix for unique in array validation and null values

[0.38.0] - 2021-05-03‚Äč

Added‚Äč

  • New uniqueInArray validation prop. If you set it to true, the user will only be allowed to have the value of that property once in the parent ArrayProperty. It works on direct children properties or on first level children of a MapProperty (if set as the .of property of the ArrayProperty)

Changed‚Äč

  • Fix for dates in new documents, being set to the current time
  • The popup form field in the table now has a save button instead of saving automatically.

[0.37.0] - 2021-04-29‚Äč

Changed‚Äč

  • Mono typeface import css has been removed from the core library and needs to be imported in every implementation now, like the Rubik typeface. Examples and Readme updated. Useful for SSR.
  • Enhanced feedback for references configuration errors, no longer crashing the app.
  • Changed double click behaviour in collections table to open the inline editor, replaced by a triple click. You can double click to select the content of the cell.

[0.36.1] - 2021-04-29‚Äč

Changed‚Äč

  • Fix for navigation loading bug using NavigationBuilder

[0.36.0] - 2021-04-29‚Äč

Changed‚Äč

  • CMSApp has been split internally into 3 components:
    • CMSApp which now is only in charge of initialising Firebase
    • CMSAppProvider which is in charge of providing all the contexts used by the CMS hooks.
    • CMSMainView which includes the views of the app including login screen and main collection and entity components. You can see an example here
  • Fix for a bug when saving entities.
  • [BREAKING] AuthContextController has been renamed to AuthController

[0.35.0] - 2021-04-26‚Äč

Added‚Äč

  • Added useNavigationFrom hook and getNavigationFrom
  • Added context to save and delete callbacks, so you can access getNavigationFrom from within them.
  • NavigationBuilder now supports returning a promise with the navigation result, useful if you need to check permissions based on the logged user.

Changed‚Äč

  • [BREAKING] SchemaSidePanelProps has been renamed to SchemaConfig used in the schemaResolver prop.
  • [BREAKING] useAppConfigContext has been renamed to useCMSAppContext

[0.34.1] - 2021-04-07‚Äč

Changed‚Äč

  • Fix for broken collection detail buttons

[0.34.0] - 2021-04-07‚Äč

Added‚Äč

  • Added unique fields validation
  • Internal refactor of CollectionTable.tsx to improve its reusability

[0.33.0] - 2021-03-30‚Äč

Added‚Äč

  • Added example shaped array custom fields in the example folder

Changed‚Äč

  • Adaptations to make it easier to implement custom fields and use the internal CMS fields bound to properties.
  • [BREAKING] fieldProps in the property fields configuration has been renamed to customProps
  • [BREAKING] customPreview in the property fields configuration has been renamed to preview
  • You don't need to specify an of props in array properties or a properties prop in map properties, if you specify a custom field

[0.32.0] - 2021-03-30‚Äč

Added‚Äč

  • Allowing customizing enum chip colors. You can now specify the color key to the EnumValueConfig. You can also pass a Map instead of a plain object if you need to ensure the order of the elements.

Changed‚Äč

  • Fix for Firebase peer dependency.
  • [BREAKING] EnumValues is no longer generic.

[0.31.0] - 2021-03-26‚Äč

Added‚Äč

  • Added callback for selecting file name when uploading files to an entity.

[0.30.0] - 2021-03-16‚Äč

Added‚Äč

  • Improved permissions system. You can now set create, edit or delete permissions in the collection config. Those permissions can be set on a per user basis, using a builder.
  • In the same way, you can now change the main navigation based on the logged user.

Changed‚Äč

  • The navigation prop in CMSApp now can take an object where you define your collections like until now, but also the custom views that were found in the root level.
  • [BREAKING] AdditionalView is now called CMSView
  • [BREAKING] customViews in the mainCMSAppProps has been moved under the new navigation object.
  • [BREAKING] deleteEnabled and editEnabled have been removed from collections in favor of new permissions object.

[0.29.0] - 2021-03-12‚Äč

Added‚Äč

  • Home page and possibility to add descriptions to collections using Markdown
  • Allowing overriding locale (only used for changing date formats for now)
  • Allowing customizing date formats with the parameter dateTimeFormat

[0.28.2] - 2021-03-04‚Äč

Changed‚Äč

[0.28.1] - 2021-03-05‚Äč

Changed‚Äč

  • Bigger drawer.
  • Fix for schema resolving issue.
  • Fix for react-router routes, they need to be exact now

[0.28.0] - 2021-03-02‚Äč

Added‚Äč

  • Added export function in collection views, enabled by default but can be disabled.

Changed‚Äč

  • Enhanced table performance by reducing the number of divs

[0.27.0] - 2021-02-22‚Äč

Added‚Äč

  • Added clearMissingValues to map property config, allowing missing properties from field values to be deleted from Firestore.
  • Added assigned size to custom previews.

[0.26.2] - 2021-02-22‚Äč

Added‚Äč

  • MUI disableEnforceFocus is now enabled for entity dialogs

Changed‚Äč

  • Enhanced disabled fields in table mode

[0.26.1] - 2021-02-20‚Äč

Added‚Äč

  • Changed behavior of custom fields in table mode

[0.26.0] - 2021-02-18‚Äč

Added‚Äč

  • You can now change entity properties on the fly, allowing for conditional fields, by using a builder that receives the current values.

Changed‚Äč

  • The disabled flag has changed behavior. It now renders the corresponding field as disabled, instead of a preview. You can use the new flag readOnly to preserve the previous state
  • Fix for empty strings on hooks and default values were causing a crash.
  • Fix for additional column keys when defining collections.
  • [BREAKING] CMSFieldProps is now called FieldProps
  • [BREAKING] FormFieldProps is now called CMSFormFieldProps
  • [BREAKING] createFormField is no longer passed as an argument in CMSFieldProps and it has been replaced with a CMSFormField, that is a React component that takes the same props. You most probably don't need this unless you are building nested custom fields.

[0.25.2] - 2021-02-14‚Äč

Changed‚Äč

  • Fixed bug when switching subcollections in entity view.
  • Fix for drag and drop arrays

[0.25.1] - 2021-02-14‚Äč

Added‚Äč

  • schemaResolver props in the CMSApp level that allows overriding schemas and configs in the side dialog panels

[0.25.0] - 2021-02-10‚Äč

Added‚Äč

  • useSideEntityController hook, allows to open the side dialog programmatically and override the entity schemas.
  • New custom field for arrays of references, in form and table mode
  • initialSort to collections views.

Changed‚Äč

  • Removed full size entity view, in favor of side lateral menu. Also when typing directly URLs pointing to entities.
  • Fix for form validation of untouched new entities.

[0.24.0] - 2021-01-26‚Äč

Added‚Äč

  • Implemented FirebaseUi to allow for all possible Firebase login types.
  • Added a context object in the CMSFieldProps that allows developers to access the context of the form, such as other field values. This is useful for creating conditional fields.
  • Fix for buttons in rows of tables with no inline editing.

Changed‚Äč

  • [BREAKING] The developer defined props in custom fields can be accessed now under the customProps property, instead of directly.

[0.23.0] - 2021-01-23‚Äč

Added‚Äč

  • Users are able to select entities now
  • Developers can now define custom actions in the collections, using a builder.
  • Possibility to copy existing entities
  • Two internal contexts are now exposed in the library: useSnackbarController and useAuthContext. More details in the README file
  • Thanks to @faizaand and @Snivik for the PRs!

[0.22.0] - 2021-01-02‚Äč

Added‚Äč

  • onFirebaseInit callback on the CMSApp called after Firebase initialisation. Useful for using the local emulator.

Changed‚Äč

  • Fixed initial values bug when creating new entities and validation.
  • Added showError prop to CMSFieldProps

[0.21.2] - 2020-12-30‚Äč

Changed‚Äč

  • Fixed click behaviour of tables when inline editing is disabled.
  • More consistent map property previews

[0.21.1] - 2020-12-29‚Äč

Changed‚Äč

  • Table performance improvements

[0.21.0] - 2020-12-28‚Äč

Added‚Äč

  • Inline editing of tables. Tables are now editable by default. There are two new parameters you can set in entity collection views.
    • editEnabled defaults to true. If false, the users will not be able to edit or create new entities.
    • inlineEditing defaults to true. If false, the users can still edit the content, but the inline editing is disabled. The side panel is still enabled.

Changed‚Äč

  • [BREAKING] The custom fields API has been refactored and simplified. The Formik props have been abstracted away and only the relevant fields are exposed. You can find the new props here an example of the new implementation here
  • Fixed date autovalues generating modified form prompt, even if it wasn't

[0.20.0] - 2020-12-15‚Äč

Changed‚Äč

  • Internal refactor of CMSApp.tsx and contexts.
  • [BREAKING] String properties confi