New features
-
WordPress Preview support in a new version of the Frontity Embedded Mode - [Proof of Concept] plugin. This will be the way it’ll work in the future Frontity plugin.
Here you can see a quick demo of this feature, which allows you to use the preview mode just like it works in WordPress but showing the content from your Frontity theme!
- Add support for Auth header in Source packages by setting
state.source.auth
. This will allow users to e.g. pass Basic Auth header in all requests. #568
Enhancements
In order to make the support the preview and auth headers in Source packages, we introduced a lot of enhancements:
- Use the URL search param
frontity_name
instead of justname
for frontity multisite. #568 - Remove all query string parameters that start with
frontity_
from the page querystring and pass them (camelCased) tostate.frontity.options
. #568 - Add the dotenv to support loading environment variables from
.env
files. #568 - Add type for frontity options (
state.frontity.options
). #568 - New post type handlers for plain query permalinks #564:
-
/?p=ID
for posts and custom post types. -
/?page_id=ID
for pages.
-
- Sort the link query alphabetically. For example,
?k1=v1&k2=v2
is now the same than?k2=v2&k1=v1
. #564 - Support the
preview=true
query in the PostType and PostTypeWithQuery handlers.If that query is present, the handlers will do an additional request to get the latest revision and they will substitute thetitle
,content
andexcerpt
with the last one. #564 - Add
queryString
to the list of link params we get/set using
libraries.source.parse
andlibraries.source.stringify
. #564 - Support regular expression patterns to match queries in the URLs, like “RegExp:(?|&)preview=true”. #564
- Rename
RouteParams
type toLinkParams
. The wordroute
is now used to
describe alink
without the pagination part. #564 - Update the Analytics packages READMEs to adds Settings and Usage of each of them: @frontity/analytics, @frontity/google-analytics, @frontity/google-tag-manager-analytics, @frontity/comscore. #573
Bug fixes
- Actions Fetch Force Parameter Not Respected in wp-source Package. #577
- isHome should be false when isSearch is true. #481
- If a handler pattern isn’t matched we should return a Server Error, #331
Packages Changelog
@frontity/comscore-analytics@1.1.0
Minor Changes
-
8296f899
#573 Thanks @juanmaguitar! - Updated info in README to add Settings and Usage of each Analytics package
Patch Changes
- Updated dependencies [
e2c193f2
]:- frontity@1.12.0
@frontity/core@1.9.0
Minor Changes
-
e2c193f2
#568 Thanks @michalczaplinski! - Add support for auth headers: Auth header in Source packages and Frontity Query Options - #12 by mmczaplinski- Use use the URL search param
frontity_name
instead of justname
for frontity multisite. - Remove all querystring parameters that start with
frontity_
from the page querystring and pass them (camelCased) tostate.frontity.options
.
- Use use the URL search param
frontity@1.12.0
Minor Changes
-
e2c193f2
#568 Thanks @michalczaplinski! - Add the dotenv to support loading environment variables from.env
files.
Auth header in Source packages and Frontity Query Options - #12 by mmczaplinski
Patch Changes
@frontity/google-analytics@1.3.0
Minor Changes
-
8296f899
#573 Thanks @juanmaguitar! - Updated info in README to add Settings and Usage of each Analytics package
Patch Changes
- Updated dependencies [
e2c193f2
]:- frontity@1.12.0
@frontity/google-tag-manager-analytics@1.1.0
Minor Changes
-
8296f899
#573 Thanks @juanmaguitar! - Updated info in README to add Settings and Usage of each Analytics package
Patch Changes
- Updated dependencies [
e2c193f2
]:- frontity@1.12.0
@frontity/types@1.5.0
Minor Changes
-
e2c193f2
#568 Thanks @michalczaplinski! - Add type for frontity options (state.frontity.options
).Auth header in Source packages and Frontity Query Options - #12 by mmczaplinski
@frontity/wp-source@1.9.0
Minor Changes
-
63fc4559
#564 Thanks @luisherranz! - New post type handlers for plain query permalinks:-
/?p=ID
for posts and custom post types. -
/?page_id=ID
for pages.
-
-
5553daf4
#568 Thanks @michalczaplinski! - Add support for adding auth headers to the source packages by settingstate.source.auth
. This will allow users to e.g. pass Basic Auth header in all requests. Feature Discussion: Auth header in Source packages and Frontity Query Options -
63fc4559
#564 Thanks @luisherranz! - Sort the link query alphabetically. For example,?k1=v1&k2=v2
is now the same than?k2=v2&k1=v1
. -
63fc4559
#564 Thanks @luisherranz! - Support thepreview=true
query in the PostType and PostTypeWithQuery handlers.If that query is present, the handlers will do an additional request to get
the latest revision and they will substitute thetitle
,content
and
excerpt
with the last one. -
63fc4559
#564 Thanks @luisherranz! - AddqueryString
to the list of link params we get/set using
libraries.source.parse
andlibraries.source.stringify
. -
63fc4559
#564 Thanks @luisherranz! - Support regular expression patterns to match queries in the URLs, like
“RegExp:(?|&)preview=true”.
Patch Changes
-
63fc4559
#564 Thanks @luisherranz! - Do not setisHome
to truewhen
isSearch
istrue
. -
f57af435
#579 Thanks @michalczaplinski! - Fix the issue where the{ force: true }
option was not respected in the postType handler. - Updated dependencies [
e2c193f2
,63fc4559
]:- frontity@1.12.0
- @frontity/source@1.3.1
@frontity/source@1.3.1
Patch Changes
-
63fc4559
#564 Thanks @luisherranz! - RenameRouteParams
type toLinkParams
. The wordroute
is now used to
describe alink
without the pagination part. - Updated dependencies [
e2c193f2
]:- frontity@1.12.0