Skip to content

Commit

Permalink
Merge branch 'master' into issue--28941-Improve-Password-Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez authored Aug 22, 2024
2 parents 6047df2 + 78dafd3 commit eea049a
Show file tree
Hide file tree
Showing 36 changed files with 7,809 additions and 7,032 deletions.
2 changes: 1 addition & 1 deletion .mvn/maven-build-cache-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://maven.apache.org/extensions/maven-build-cache-extension/maven-build-cach
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.0.0 https://maven.apache.org/xsd/build-cache-config-1.0.0.xsd">
<configuration>
<enabled>true</enabled>
<enabled>false</enabled>
<hashAlgorithm>SHA-256</hashAlgorithm>
<validateXml>true</validateXml>
<local>
Expand Down
7 changes: 7 additions & 0 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,13 @@

<!-- Apache Tomcat -->

<dependency>
<groupId>com.dotcms</groupId>
<artifactId>tomcat-redis-session-manager</artifactId>
<version>1.3</version>
<scope>provided</scope>
</dependency>

<dependency>
<!-- Jasper is the Tomcat JSP Engine -->
<groupId>org.apache.tomcat</groupId>
Expand Down
30 changes: 21 additions & 9 deletions bom/logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<properties>
<maven.deploy.skip>false</maven.deploy.skip>
<flatten.mode>bom</flatten.mode>
<log4j.version>2.20.0</log4j.version>
<slf4j.version>2.0.7</slf4j.version>
<log4j.version>2.23.1</log4j.version>
<slf4j.version>2.0.9</slf4j.version>
</properties>

<dependencyManagement>
Expand All @@ -27,30 +27,42 @@
Do not include incompatible artifacts e.g. -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- Support log4j1.2.x API in Log4j2 -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<artifactId>log4j-iostreams</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- Support Java Commons Logging API in Log4j2 -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${log4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<!-- Support Java Commons Logging API in Log4j2 -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>${log4j.version}</version>
<scope>compile</scope>
<scope>runtime</scope>
</dependency>
<dependency>
<!-- Support SLF4j2 API in Log4j2 -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>${log4j.version}</version>
<scope>compile</scope>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand All @@ -61,16 +73,16 @@
<dependency>
<!-- Servlet container initialization of Log4j2 -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
<artifactId>log4j-appserver</artifactId>
<version>${log4j.version}</version>
<scope>compile</scope>
<scope>runtime</scope>
</dependency>
<dependency>
<!-- Async support for Log4J 2.x -->
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>3.3.4</version>
<scope>compile</scope>
<scope>runtime</scope>
</dependency>

</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions core-web/libs/sdk/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@dotcms/angular",
"version": "0.0.1-alpha.31",
"version": "0.0.1-alpha.32",
"peerDependencies": {
"@angular/common": "^17.1.0",
"@angular/core": "^17.1.0",
"@angular/router": "^17.1.0",
"@dotcms/client": "0.0.1-alpha.31",
"@dotcms/client": "0.0.1-alpha.32",
"@tinymce/tinymce-angular": "^8.0.0",
"rxjs": "^7.8.0"
},
Expand Down
16 changes: 14 additions & 2 deletions core-web/libs/sdk/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,23 @@ yarn add @dotcms/client

## Usage

First, initialize the client with your DotCMS instance details.
`@dotcms/client` supports both ES modules and CommonJS. You can import it using either syntax:

### ES Modules

```javascript
import { dotcmsClient } from '@dotcms/client';
```

### CommonJS

```javascript
const { dotcmsClient } = require('@dotcms/client');
```

First, initialize the client with your DotCMS instance details.

```javascript
const client = dotcmsClient.init({
dotcmsUrl: 'https://your-dotcms-instance.com',
authToken: 'your-auth-token',
Expand Down Expand Up @@ -107,4 +119,4 @@ Always refer to the official [DotCMS documentation](https://www.dotcms.com/docs/
| Videos | [Helpful Videos](http://dotcms.com/videos/) |
| Forums/Listserv | [via Google Groups](https://groups.google.com/forum/#!forum/dotCMS) |
| Twitter | @dotCMS |
| Main Site | [dotCMS.com](https://dotcms.com/) |
| Main Site | [dotCMS.com](https://dotcms.com/) |
3 changes: 1 addition & 2 deletions core-web/libs/sdk/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@dotcms/client",
"version": "0.0.1-alpha.31",
"type": "module",
"version": "0.0.1-alpha.32",
"description": "Official JavaScript library for interacting with DotCMS REST APIs.",
"repository": {
"type": "git",
Expand Down
11 changes: 7 additions & 4 deletions core-web/libs/sdk/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"format": ["esm", "cjs"],
"compiler": "tsc",
"generateExportsField": true,
"assets": [{ "input": ".", "output": ".", "glob": "*.md" }],
"outputPath": "dist/libs/sdk/client",
"main": "libs/sdk/client/src/index.ts",
"tsConfig": "libs/sdk/client/tsconfig.lib.json",
"assets": ["libs/sdk/client/*.md"]
"tsConfig": "libs/sdk/client/tsconfig.lib.json"
}
},
"build:js": {
Expand All @@ -34,7 +37,7 @@
"publish": {
"executor": "nx:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs sdk-js-client {args.ver} {args.tag}"
"command": "node tools/scripts/publish.mjs sdk-client {args.ver} {args.tag}"
},
"dependsOn": ["build"]
},
Expand Down
36 changes: 30 additions & 6 deletions core-web/libs/sdk/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
export * from './lib/client/sdk-js-client';
export * from './lib/editor/sdk-editor';
export * from './lib/editor/models/editor.model';
export * from './lib/editor/models/client.model';
export * from './lib/query-builder/sdk-query-builder';
export * from './lib/utils';
import { ClientConfig, DotCmsClient } from './lib/client/sdk-js-client';
import { CUSTOMER_ACTIONS, postMessageToEditor } from './lib/editor/models/client.model';
import {
CustomClientParams,
DotCMSPageEditorConfig,
EditorConfig
} from './lib/editor/models/editor.model';
import {
destroyEditor,
initEditor,
isInsideEditor,
updateNavigation
} from './lib/editor/sdk-editor';
import { getPageRequestParams, graphqlToPageEntity } from './lib/utils';

export {
graphqlToPageEntity,
getPageRequestParams,
isInsideEditor,
DotCmsClient,
DotCMSPageEditorConfig,
CUSTOMER_ACTIONS,
CustomClientParams,
postMessageToEditor,
EditorConfig,
initEditor,
updateNavigation,
destroyEditor,
ClientConfig
};
5 changes: 4 additions & 1 deletion core-web/libs/sdk/client/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
"types": [""],
"target": "es2020",
"module": "es2020",
"moduleResolution": "node"
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
Expand Down
4 changes: 2 additions & 2 deletions core-web/libs/sdk/experiments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotcms/experiments",
"version": "0.0.1-alpha.31",
"version": "0.0.1-alpha.32",
"description": "Official JavaScript library to use Experiments with DotCMS.",
"repository": {
"type": "git",
Expand All @@ -25,6 +25,6 @@
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@dotcms/client": "0.0.1-alpha.31"
"@dotcms/client": "0.0.1-alpha.32"
}
}
4 changes: 2 additions & 2 deletions core-web/libs/sdk/react/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@dotcms/react",
"version": "0.0.1-alpha.31",
"version": "0.0.1-alpha.32",
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"@dotcms/client": "0.0.1-alpha.31"
"@dotcms/client": "0.0.1-alpha.32"
},
"description": "Official React Components library to render a dotCMS page.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion core-web/tools/scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ try {
}

// Execute "npm publish" to publish
execSync(`npm publish --access public --tag ${tag}`);
execSync(`npm publish --access public --tag ${tag} --dry-run`);
Loading

0 comments on commit eea049a

Please sign in to comment.