Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESBuild #3386

Merged
merged 48 commits into from
Sep 16, 2022
Merged

ESBuild #3386

merged 48 commits into from
Sep 16, 2022

Commits on Aug 31, 2022

  1. Esbuild

    sidharthv96 committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    4f0e18b View commit details
    Browse the repository at this point in the history
  2. ESBuild

    sidharthv96 committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    965df4f View commit details
    Browse the repository at this point in the history
  3. Remove jisonloader

    sidharthv96 committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    1206ec4 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Serve

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    d67e272 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into sidv/esbuild

    * develop: (50 commits)
      Typo fix
      Fix repo URL
      Revert flowchart change
      Revert flowchart change
      Fix TODO Qs
      chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
      chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
      chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
      Fix gitGraph findLane function error
      Update dependabot.yml
      Replacing replaceAll with replace
      Rework 'parseDuration' as a pure duration parsing
      Supports duration in decimal
      Create a more consistent 'parseDuration'
      Remove `@ts-ignore`s.
      Fix svgDraw return types
      ...
    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    7aeb60f View commit details
    Browse the repository at this point in the history
  3. Typescript

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    fe3bb0b View commit details
    Browse the repository at this point in the history
  4. Typescript

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    0156252 View commit details
    Browse the repository at this point in the history
  5. Fix export

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    84bf79f View commit details
    Browse the repository at this point in the history
  6. Esbuild with types

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    6be05e9 View commit details
    Browse the repository at this point in the history
  7. Add webpack build

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    53fe35e View commit details
    Browse the repository at this point in the history
  8. fix flowchart jison

    sidharthv96 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    f1fa91a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    04f1863 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Test - esbuild

    sidharthv96 committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    99923fc View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Merge branch 'develop' into sidv/esbuild

    * develop: (50 commits)
      Build docs
      chore: update browsers list
      Fix pre
      Fix mermaid code formatting in html
      Prettier pass
      Fix XSS htmls
      fix #3407 Replace `div` with `pre` and format
      Add change in `src/docs`
      Fix lint issue
      build: run `build:prod` on `yarn prepare`
      Build documentation
      Fix typo
      Fix typo in documentation
      Fix doc
      Add files only when running from lint-staged
      Add files only when running from lint-staged
      Fix configuration doc
      Prettier Pass
      Add dotfiles
      Prettier
      ...
    sidharthv96 committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    f9bf535 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into sidv/esbuild

    * develop:
      chore(deps-dev): bump @types/dompurify from 2.3.3 to 2.3.4
      chore(deps-dev): bump jest-environment-jsdom from 29.0.1 to 29.0.2
    sidharthv96 committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    a0fa8df View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. Surface jison errors

    Co-authored-by: Alois Klink <alois@aloisklink.com>
    sidharthv96 and aloisklink committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    3a17917 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Fix mermaidAPI mock

    Co-authored-by: Alois Klink <alois@aloisklink.com>
    sidharthv96 and aloisklink committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    51dbdb9 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into sidv/esbuild

    * develop: (37 commits)
      fix JSDOC @param, @returns; fixed a few minor typos in comments
      Update after lint comments
      Regenerate the directive docs as I changed them
      chore(deps-dev): bump typescript from 4.7.4 to 4.8.2
      Update duplicate copy pasted directive description
      chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2
      Lint fixes
      Removing requirement to add ids for nodes with a shape
      Merged typescript changes
      Updated with cloud and bang shapes
      Adding cloud and bang shapes
      fix(git): support numeric branch names
      Fix for unit tests after refactoring
      Documenting classes and icons
      Startingpoint for the documentation
      Some theming/styling fixes
      Adding some rendering tests
      ...
    sidharthv96 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    853b676 View commit details
    Browse the repository at this point in the history
  3. Fix doc formatting

    sidharthv96 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    a61c17c View commit details
    Browse the repository at this point in the history
  4. Merge branch 'develop' into sidv/esbuild

    * develop:
      Update prettier
      chore: Run postbuild with prepare
      (formatting) prettier fix
      Removed warnings in the grammar oand some console logging
      unmangle sentence about doc changes committed and showing up on docsify site
      change references from /docs to /src/docs; rework doc section in CONTRIBUTING
    sidharthv96 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    86cbf85 View commit details
    Browse the repository at this point in the history
  5. Fix postbuild

    sidharthv96 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    056d520 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Remove native memoize

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    8a476f8 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into sidv/memoize

    * develop: (22 commits)
      fix: Tsconfig
      ci: lint .jison files for any console.log()
      refactor: remove `console.log` in c4Diagram.jison
      style: forbid using `console` in mermaid src code
      Add tests for other boundary properties
      Add first test for Boundary
      Test all different types of systems
      Introduce shape list in test
      Add tests for C4 System
      Make test grouping more explicit
      Copy tests from Person to PersonExt
      Add test for link to Person_Ext
      Add question on Person_Ext
      Add test for structure of Person_Ext
      Add test for alias
      Add test for label
      Add test for description
      Add test for $tags
      Add test for $link
      Add test for $sprite
      ...
    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    1c6328c View commit details
    Browse the repository at this point in the history
  3. fix: Use lodash memoize

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    5aae45d View commit details
    Browse the repository at this point in the history
  4. Merge branch 'develop' into sidv/esbuild

    * develop: (22 commits)
      fix: Tsconfig
      ci: lint .jison files for any console.log()
      refactor: remove `console.log` in c4Diagram.jison
      style: forbid using `console` in mermaid src code
      Add tests for other boundary properties
      Add first test for Boundary
      Test all different types of systems
      Introduce shape list in test
      Add tests for C4 System
      Make test grouping more explicit
      Copy tests from Person to PersonExt
      Add test for link to Person_Ext
      Add question on Person_Ext
      Add test for structure of Person_Ext
      Add test for alias
      Add test for label
      Add test for description
      Add test for $tags
      Add test for $link
      Add test for $sprite
      ...
    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    8e2287a View commit details
    Browse the repository at this point in the history
  5. Merge branch 'sidv/esbuild' into sidv/memoize

    * sidv/esbuild:
    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    b1770d3 View commit details
    Browse the repository at this point in the history
  6. fix: Support treeshaking

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    d2e7b1e View commit details
    Browse the repository at this point in the history
  7. Merge pull request #3434 from mermaid-js/sidv/memoize

    Fix memoize
    knsv committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    ffcb73a View commit details
    Browse the repository at this point in the history
  8. fix: Add .core build.

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    1029ce4 View commit details
    Browse the repository at this point in the history
  9. Correct name umd -> iife

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    c8d3c3a View commit details
    Browse the repository at this point in the history
  10. Specify iife format

    sidharthv96 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    5148acb View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2022

  1. build: remove main function from .jison files

    When converting a `.jison` file into a CommonJS module,
    jison by default adds a main() function that calls `require("fs");`
    
    Even though the main function is never used in the browser,
    because `fs` is a Node.JS only module, this causes some esbuild issues.
    
    To disable this, we can just set an empty main to the jison generator.
    aloisklink committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    48a899f View commit details
    Browse the repository at this point in the history
  2. build: convert core build to unbundled ESM

    The `mermaid.core.js` build was previously a UMD build that did not
    have `node_modules` bundled.
    
    This was designed for users to add `mermaid` to their own apps,
    then bundle with Webpack/ESBuild.
    Hence the bundle test in `cypress/platform/bundle-test.js`.
    
    As ESBuild does not support UMD, I've switched the `mermaid.core.js`
    to instead use ESM, as Mermaid now requires ESM
    (due to d3 requiring ESM). All modern bundlers also support ESM.
    aloisklink committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    37aaca0 View commit details
    Browse the repository at this point in the history
  3. build: change package export to mermaid.core.mjs

    `mermaid.core.mjs` should be the default export.
    This is because it does not bundle `node_modules/`, allowing users of
    mermaid to bundle dependencies themselves,
    using Webpack/ESBuild/others.
    aloisklink committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    5554725 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Merge branch 'develop' into sidv/esbuild

    * develop:
      Suppress errors
      Introduce stricter linting
      Introduce stricter linting
    sidharthv96 committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    0e504f3 View commit details
    Browse the repository at this point in the history
  2. docs: update mermaid.core.* JSDoc

    Fix typo and add that `mermaid.core.*` is compatible with Vite.
    aloisklink committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    3f76eb0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3437 from aloisklink/esbuild-backwards-compatible…

    …-core-js
    
    Esbuild: backwards-compatible `mermaid.core.mjs`
    sidharthv96 committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    a3bda3c View commit details
    Browse the repository at this point in the history
  4. Unify webpack build

    sidharthv96 committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    e740325 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    681f4bb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d873506 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Add diagramAPI to outfile

    sidharthv96 committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    a87abc0 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Remove extension

    sidharthv96 committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    a7fa40e View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Merge branch 'develop' into sidv/esbuild

    * develop: (56 commits)
      chore(deps): bump dompurify from 2.3.10 to 2.4.0 (#3444)
      chore(deps): bump stylis from 4.1.1 to 4.1.2 (#3439)
      chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 (#3450)
      Cleanup fixing som lingering issues
      Apply suggestions from code review
      chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 (#3458)
      chore(deps-dev): bump @typescript-eslint/eslint-plugin (#3457)
      chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 (#3445)
      chore(deps-dev): bump @babel/preset-env from 7.18.10 to 7.19.0 (#3442)
      chore(deps-dev): bump @typescript-eslint/parser from 5.36.1 to 5.37.0 (#3451)
      chore(deps-dev): bump @babel/core from 7.18.13 to 7.19.0 (#3447)
      chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 (#3441)
      chore(deps-dev): bump babel-jest from 29.0.2 to 29.0.3 (#3448)
      chore(deps-dev): bump eslint from 8.23.0 to 8.23.1
      chore: fix eslint warnings
      chore: Turn off eslint rules in spec, demos, etc.
      chore(deps-dev): bump typescript from 4.8.2 to 4.8.3 (#3446)
      chore(deps): bump actions/checkout from 2 to 3 (#3449)
      change wording of console log message (use comma)
      Moving out tests from mermaid.spec.js
      ...
    sidharthv96 committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    73d02b2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Merge branch 'develop' into sidv/esbuild

    * develop:
      Replace GoogleAnalytics with Plausible
      fix(git): support single character branch names
      Cleanup unused variables and some commented out code
      Release 9.1.7
      Fix for broken rendering test
      Fix for issue #3428, load the configured diagrams even when initialize has not been called.
      #3395 Renabling the error graph which is rendered on error
      #3395 Fix for lopp stopping at first failure
    sidharthv96 committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    2f41013 View commit details
    Browse the repository at this point in the history
  2. Fix coverage

    sidharthv96 committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    2693c9b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'develop' into sidv/esbuild

    * develop:
      Fix for issues in errorhandling and class diagrams after refactoring
    sidharthv96 committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    6452ccc View commit details
    Browse the repository at this point in the history
  4. Merge branch 'develop' into sidv/esbuild

    * develop:
      Fix docs
    sidharthv96 committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    2579bf1 View commit details
    Browse the repository at this point in the history
  5. cleanup

    sidharthv96 committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    bb413d5 View commit details
    Browse the repository at this point in the history